diff options
author | dirkf <fieldhouse@gmx.net> | 2023-07-04 16:06:21 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-07-05 22:58:54 +0100 |
commit | f24bc9272e9b74efc4c4af87c862f5f78921d424 (patch) | |
tree | 6454f8c8ab758b3e18f6d39395b91da822069819 /youtube_dl/utils.py | |
parent | b08a58090635777f1001d5cde2cd141a5565177c (diff) | |
download | youtube-dl-f24bc9272e9b74efc4c4af87c862f5f78921d424.tar.gz youtube-dl-f24bc9272e9b74efc4c4af87c862f5f78921d424.tar.xz youtube-dl-f24bc9272e9b74efc4c4af87c862f5f78921d424.zip |
[Misc] Fixes for 2.6 compatibility
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 584581b6a..83f67bd95 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -47,6 +47,7 @@ from .compat import ( compat_collections_abc, compat_cookiejar, compat_ctypes_WINFUNCTYPE, + compat_datetime_timedelta_total_seconds, compat_etree_fromstring, compat_expanduser, compat_html_entities, @@ -3102,7 +3103,7 @@ def unified_timestamp(date_str, day_first=True): pass timetuple = email.utils.parsedate_tz(date_str) if timetuple: - return calendar.timegm(timetuple) + pm_delta * 3600 - timezone.total_seconds() + return calendar.timegm(timetuple) + pm_delta * 3600 - compat_datetime_timedelta_total_seconds(timezone) def determine_ext(url, default_ext='unknown_video'): |