diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-31 23:07:37 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-31 23:07:37 +0600 |
commit | ae12bc3ebb4cb377c2b4337ec255e652b36f5143 (patch) | |
tree | 95f9cfece1ff9a65d09f63613c2f769ea892efa7 /youtube_dl | |
parent | e327b736ca6a6a1c880b93e09a3b310c354c2c7c (diff) |
[utils] Make unified_strdate always return unicode string
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 89c88a4d3..764a89cca 100644 --- 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'): |