From e7a90483509634939824f408e25ccc7da6cef350 Mon Sep 17 00:00:00 2001 From: remitamine Date: Sat, 7 Nov 2015 22:10:40 +0100 Subject: [PATCH] [viidea] extract playlist if lecture is an event --- youtube_dl/extractor/viidea.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/viidea.py b/youtube_dl/extractor/viidea.py index 5539b9c02..0fdede701 100644 --- a/youtube_dl/extractor/viidea.py +++ b/youtube_dl/extractor/viidea.py @@ -115,7 +115,7 @@ class ViideaIE(InfoExtractor): entries = [] parts = cfg.get('videos') - if lecture_data.get('type') != 'evt' and parts: + if parts: if len(parts) == 1: part = compat_str(parts[0]) if part: @@ -131,7 +131,7 @@ class ViideaIE(InfoExtractor): for part in parts: entries.append(self.url_result('%s/%s/video/%s' % (base_url, lecture_slug, part), 'Viidea')) lecture_info['_type'] = 'multi_video' - else: + if not parts or lecture_data.get('type') == 'evt': # Probably a playlist playlist_webpage = self._download_webpage('%s/site/ajax/drilldown/?id=%s' % (base_url, lecture_id), lecture_id) entries = [