diff options
author | Sergey M. <dstftw@gmail.com> | 2014-05-20 19:53:28 +0700 |
---|---|---|
committer | Sergey M. <dstftw@gmail.com> | 2014-05-20 19:53:28 +0700 |
commit | 1a1826c1afe81fc8710ffa153d4c69c0a53b6666 (patch) | |
tree | 18bb04a7968c7cfef2cda3c8813d940be9a4b090 /youtube_dl/extractor/mailru.py | |
parent | c7c6d43fe1118f88887873d13e1f734034854613 (diff) | |
parent | 69f8364042196f6c327221af4dfe25ac64d7a0ab (diff) |
Merge pull request #2939 from codesparkle/upload-date-fix
No longer erroneously calculate upload_date within some extractors
Diffstat (limited to 'youtube_dl/extractor/mailru.py')
-rw-r--r-- | youtube_dl/extractor/mailru.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/mailru.py b/youtube_dl/extractor/mailru.py index f819c09b3..5016989cc 100644 --- a/youtube_dl/extractor/mailru.py +++ b/youtube_dl/extractor/mailru.py @@ -2,7 +2,6 @@ from __future__ import unicode_literals import re -import datetime from .common import InfoExtractor @@ -19,6 +18,7 @@ class MailRuIE(InfoExtractor): 'id': '46301138', 'ext': 'mp4', 'title': 'Новый Человек-Паук. Высокое напряжение. Восстание Электро', + 'timestamp': 1393232740, 'upload_date': '20140224', 'uploader': 'sonypicturesrus', 'uploader_id': 'sonypicturesrus@mail.ru', @@ -43,7 +43,6 @@ class MailRuIE(InfoExtractor): thumbnail = movie['poster'] duration = movie['duration'] - upload_date = datetime.datetime.fromtimestamp(video_data['timestamp']).strftime('%Y%m%d') view_count = video_data['views_count'] formats = [ @@ -57,7 +56,7 @@ class MailRuIE(InfoExtractor): 'id': content_id, 'title': title, 'thumbnail': thumbnail, - 'upload_date': upload_date, + 'timestamp': video_data['timestamp'], 'uploader': uploader, 'uploader_id': uploader_id, 'duration': duration, |