diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index de62b8b..9e5607f 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -404,10 +404,11 @@ class Svtplay(Service, MetadataThumbMixin): validfrom = episode["item"]["validFrom"] if "+" in validfrom: + timeformat = "%Y-%m-%dT%H:%M:%S.%f%z" if "." in episode["item"]["validFrom"] else "%Y-%m-%dT%H:%M:%S%z" date = time.mktime( datetime.datetime.strptime( _fix_broken_timezone_implementation(episode["item"]["validFrom"].replace("Z", "")), - "%Y-%m-%dT%H:%M:%S%z", + timeformat, ).timetuple(), ) else: