From 9f5bd79a0f2c3e7f30f5d403f00127f2e2124c30 Mon Sep 17 00:00:00 2001 From: Bagira Date: Thu, 6 Jul 2017 15:00:36 +0200 Subject: [PATCH] [indavideo] title mandatory; backward compability Fixed mandatory field title Added IndavideoEmbedIE due backward compability --- youtube_dl/extractor/indavideo.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/indavideo.py b/youtube_dl/extractor/indavideo.py index 1cd6f1b3d..c1b07cc51 100644 --- a/youtube_dl/extractor/indavideo.py +++ b/youtube_dl/extractor/indavideo.py @@ -75,7 +75,7 @@ class IndavideoIE(InfoExtractor): 'http://amfphp.indavideo.hu/SYm0json.php/player.playerHandler.getVideoData/%s' % video_id, video_id)['data'] - title = video.get('title') + title = video['title'] filesh = video.get('filesh') @@ -134,3 +134,10 @@ class IndavideoIE(InfoExtractor): 'tags': tags, 'formats': formats, } + +class IndavideoEmbedIE(InfoExtractor): + _VALID_URL = IndavideoIE._VALID_URL; + _TESTS = IndavideoIE._TESTS; + + def _real_extract(self, url): + return IndavideoIE._real_extract(self, url);