diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-07-29 00:35:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-29 05:35:46 +0000 |
commit | 6daf2c27c0464fba98337be30de0b66d520d0db1 (patch) | |
tree | be1409aa0c91d18f34ce12df7d16d7b5fed4db16 /yt_dlp/utils/_utils.py | |
parent | 28d485714fef88937c82635438afba5db81f9089 (diff) |
[utils] `unified_timestamp`: Recognize Sunday (#10589)
Authored by: bashonly
Diffstat (limited to 'yt_dlp/utils/_utils.py')
-rw-r--r-- | yt_dlp/utils/_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index 3e3b285a4..0d3e707c5 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -1217,7 +1217,7 @@ def unified_timestamp(date_str, day_first=True): return None date_str = re.sub(r'\s+', ' ', re.sub( - r'(?i)[,|]|(mon|tues?|wed(nes)?|thu(rs)?|fri|sat(ur)?)(day)?', '', date_str)) + r'(?i)[,|]|(mon|tues?|wed(nes)?|thu(rs)?|fri|sat(ur)?|sun)(day)?', '', date_str)) pm_delta = 12 if re.search(r'(?i)PM', date_str) else 0 timezone, date_str = extract_timezone(date_str) |