From 225e4b9633285b66adc914a61d8f55ca125eb91d Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Thu, 4 Dec 2014 14:08:08 +0100 Subject: [PATCH] [tvp] Remove unnecessary code --- youtube_dl/extractor/tvp.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/youtube_dl/extractor/tvp.py b/youtube_dl/extractor/tvp.py index 2248a9fdf..bd7ee25a0 100644 --- a/youtube_dl/extractor/tvp.py +++ b/youtube_dl/extractor/tvp.py @@ -79,15 +79,8 @@ class TvpIE(InfoExtractor): 'id': video_id, 'title': title, 'thumbnail': self._og_search_thumbnail(webpage), - 'description': self._og_search_description(webpage, default=''), + 'description': self._og_search_description(webpage), } - if mobj.group('type') == 'vod' and info_dict['description'] == '': - info_dict.update({ - 'description': self._html_search_regex( - r'(?s)', - self._download_webpage(url, video_id), 'description', group=0), - }) - video_url = self._search_regex( r'0:{src:([\'"])(?P.*?)\1', webpage, 'formats', group='url', default=None) if video_url is None: -- 2.22.2