From 7892497629e1fc0db99ad796db489c09e52c0cee Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 12 Oct 2023 20:44:57 +0000 Subject: [PATCH] microformat published date is now a timestamp this caused bugs when parsing the date. a timestamp was transformed into e.g. 2023-10-12T12:00:00-07:00T00:00:00Z which dateutil (correctly) rejects. --- app/common/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/common.py b/app/common/common.py index 4a3e775..3a58802 100644 --- a/app/common/common.py +++ b/app/common/common.py @@ -367,7 +367,7 @@ def video_metadata(metadata): published_at = ( meta2.get('liveBroadcastDetails',{}) .get('startTimestamp') or scheduled_time or - f"{meta2.get('publishDate','1970-01-01')}T00:00:00Z" + meta2.get('publishDate','1970-01-01T00:00:00Z') ) # the actual video streams have exact information: -- 2.39.3