fix comment datetime to be parsed to timestamp in YoutubeAPI

This commit is contained in:
2026-01-27 12:37:16 +00:00
parent e72d336de4
commit d78c58a70c

View File

@@ -71,7 +71,7 @@ class YouTubeAPI:
post_id=video_id, post_id=video_id,
content=comment_snippet['textDisplay'], content=comment_snippet['textDisplay'],
author=comment_snippet['authorDisplayName'], author=comment_snippet['authorDisplayName'],
timestamp=comment_snippet['publishedAt'], timestamp=datetime.datetime.strptime(comment_snippet['publishedAt'], "%Y-%m-%dT%H:%M:%SZ").timestamp(),
reply_to=None, reply_to=None,
source="YouTube" source="YouTube"
) )