mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 04:02:11 +00:00
[utils] Add one more template to unified_strdate
This commit is contained in:
parent
d5c418f29f
commit
79c21abba7
1 changed files with 2 additions and 0 deletions
|
@ -759,6 +759,7 @@ def unified_strdate(date_str, day_first=True):
|
|||
]
|
||||
if day_first:
|
||||
format_expressions.extend([
|
||||
'%d-%m-%Y',
|
||||
'%d.%m.%Y',
|
||||
'%d/%m/%Y',
|
||||
'%d/%m/%y',
|
||||
|
@ -766,6 +767,7 @@ def unified_strdate(date_str, day_first=True):
|
|||
])
|
||||
else:
|
||||
format_expressions.extend([
|
||||
'%m-%d-%Y',
|
||||
'%m.%d.%Y',
|
||||
'%m/%d/%Y',
|
||||
'%m/%d/%y',
|
||||
|
|
Loading…
Reference in a new issue