Browse Source

[utils] Add one more template to unified_strdate

Sergey M․ 10 years ago
parent
commit
79c21abba7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      youtube_dl/utils.py

+ 2 - 0
youtube_dl/utils.py

@@ -759,6 +759,7 @@ def unified_strdate(date_str, day_first=True):
     ]
     ]
     if day_first:
     if day_first:
         format_expressions.extend([
         format_expressions.extend([
+            '%d-%m-%Y',
             '%d.%m.%Y',
             '%d.%m.%Y',
             '%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:
     else:
         format_expressions.extend([
         format_expressions.extend([
+            '%m-%d-%Y',
             '%m.%d.%Y',
             '%m.%d.%Y',
             '%m/%d/%Y',
             '%m/%d/%Y',
             '%m/%d/%y',
             '%m/%d/%y',