youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 776dc3992a8995d22c172f7616d4ffd9cabc884e
parent 27ca82ebc66c91359173e45b25d992118511e330
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 10 Jan 2015 19:43:52 +0600

[utils] Clarify more day-month-first ambiguous formats

Diffstat:
Myoutube_dl/utils.py | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py @@ -679,9 +679,6 @@ def unified_strdate(date_str, day_first=True): '%b %dth %Y %I:%M%p', '%Y-%m-%d', '%Y/%m/%d', - '%d.%m.%Y', - '%d/%m/%Y', - '%d/%m/%y', '%Y/%m/%d %H:%M:%S', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', @@ -696,10 +693,16 @@ 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 %H:%M:%S', ]) else: format_expressions.extend([ + '%m.%d.%Y', + '%m/%d/%Y', + '%m/%d/%y', '%m/%d/%Y %H:%M:%S', ]) for expression in format_expressions: