aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/mailru.py
diff options
context:
space:
mode:
authorcodesparkle <adam.thalhammer@outlook.com>2014-05-17 15:21:46 +1000
committercodesparkle <adam.thalhammer@outlook.com>2014-05-17 15:21:46 +1000
commit69f8364042196f6c327221af4dfe25ac64d7a0ab (patch)
treef280e0fdeea026a840df327ff96fe9f2dda64050 /youtube_dl/extractor/mailru.py
parent91994c2c81302fede68ead037e3f3e7353b1b5d5 (diff)
removed duplicate and somemtimes incorrect logic for parsing upload date as this job is already taken care of automatically by YoutubeDL.py
Diffstat (limited to 'youtube_dl/extractor/mailru.py')
-rw-r--r--youtube_dl/extractor/mailru.py5
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,