[utils] Add one more template to unified_strdate
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 12:45:46 +0000 (18:45 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 12:45:46 +0000 (18:45 +0600)
youtube_dl/utils.py

index e1761265c9fe1e02d2ad7989f05aa7f61b2e7832..be3f62da702b86376c65f17a45c1e16545a83af2 100644 (file)
@@ -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',