aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vice.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-02-18 09:52:43 +0100
committerRemita Amine <remitamine@gmail.com>2017-02-18 09:52:43 +0100
commit70bcc444a990ee9ca3daab6f3dc2d5d58a948ba4 (patch)
treeb80a19fdd4ebdfc350a8c930adf5f587120f29d4 /youtube_dl/extractor/vice.py
parent28e35f50702a8841b4caf072a546ff06ca63db96 (diff)
[viceland] improve info extraction and update test
Diffstat (limited to 'youtube_dl/extractor/vice.py')
-rw-r--r--youtube_dl/extractor/vice.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vice.py b/youtube_dl/extractor/vice.py
index 8a00c8fee..f0a7fd739 100644
--- a/youtube_dl/extractor/vice.py
+++ b/youtube_dl/extractor/vice.py
@@ -70,10 +70,10 @@ class ViceBaseIE(AdobePassIE):
'url': uplynk_preplay_url,
'id': video_id,
'title': title,
- 'description': base.get('body'),
+ 'description': base.get('body') or base.get('display_body'),
'thumbnail': watch_hub_data.get('cover-image') or watch_hub_data.get('thumbnail'),
- 'duration': parse_duration(video_data.get('video_duration') or watch_hub_data.get('video-duration')),
- 'timestamp': int_or_none(video_data.get('created_at')),
+ 'duration': int_or_none(video_data.get('video_duration')) or parse_duration(watch_hub_data.get('video-duration')),
+ 'timestamp': int_or_none(video_data.get('created_at'), 1000),
'age_limit': parse_age_limit(video_data.get('video_rating')),
'series': video_data.get('show_title') or watch_hub_data.get('show-title'),
'episode_number': int_or_none(episode.get('episode_number') or watch_hub_data.get('episode')),