aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-04 18:45:46 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-04 18:45:46 +0600
commit79c21abba7c9902f00ddac83a2af29c36fe0e122 (patch)
tree6646ca01c828273a538ba55a6c2ccc9b7099d43c /youtube_dl/utils.py
parentd5c418f29fcce3d62bba7f6228b76b69b5b731ce (diff)
[utils] Add one more template to unified_strdate
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index e1761265c..be3f62da7 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -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',