aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-08-10 11:36:49 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-08-10 11:37:23 +0800
commit81c13222c6418b72e0d5e11ed37700e984c4de43 (patch)
tree8355676c43ce577e0d27aa5ecbc9ed7779ecc02e
parentb1ce2ba1978142c75418ead4b91ea6138bb37a16 (diff)
downloadyoutube-dl-81c13222c6418b72e0d5e11ed37700e984c4de43.tar.xz
[utils] Recognize more formats in unified_timestamp
Used in CtsNews
-rw-r--r--ChangeLog6
-rw-r--r--youtube_dl/utils.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ac9e78a8d..cd59a87a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Core
++ Recognize more formats in unified_timestamp
+
+
version 2016.08.10
Core
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index c50238ba1..a03f7184d 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -122,6 +122,7 @@ DATE_FORMATS = (
'%Y %m %d',
'%Y-%m-%d',
'%Y/%m/%d',
+ '%Y/%m/%d %H:%M',
'%Y/%m/%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f',