projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e327b73
)
[utils] Make unified_strdate always return unicode string
author
Sergey M․
<dstftw@gmail.com>
Sat, 31 Oct 2015 17:07:37 +0000
(23:07 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 31 Oct 2015 17:07:37 +0000
(23:07 +0600)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 89c88a4d305a36c389f137926d6beec30f028878..764a89ccaccc34e9236d84b445f9f2d8342e0244 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-910,7
+910,7
@@
def unified_strdate(date_str, day_first=True):
timetuple = email.utils.parsedate_tz(date_str)
if timetuple:
upload_date = datetime.datetime(*timetuple[:6]).strftime('%Y%m%d')
- return
upload_date
+ return
compat_str(upload_date)
def determine_ext(url, default_ext='unknown_video'):