projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[utils] Improve unified_timestamp
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index d79410e58a2ae0965faa291f67b9a6645956c5f0..16bf49408c5228202cd43d9f7265d77c1c5122dc 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1179,7
+1179,7
@@
def unified_timestamp(date_str, day_first=True):
if date_str is None:
return None
- date_str =
date_str.replace(',', ' '
)
+ date_str =
re.sub(r'[,|]', '', date_str
)
pm_delta = 12 if re.search(r'(?i)PM', date_str) else 0
timezone, date_str = extract_timezone(date_str)