1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[tvp] Remove unnecessary code

This commit is contained in:
Tithen-Firion 2014-12-04 14:08:08 +01:00
parent 6ce2c6783b
commit 225e4b9633

View file

@ -79,15 +79,8 @@ class TvpIE(InfoExtractor):
'id': video_id, 'id': video_id,
'title': title, 'title': title,
'thumbnail': self._og_search_thumbnail(webpage), '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)<div\s+class=[\'"]opis.*?</div>',
self._download_webpage(url, video_id), 'description', group=0),
})
video_url = self._search_regex( video_url = self._search_regex(
r'0:{src:([\'"])(?P<url>.*?)\1', webpage, 'formats', group='url', default=None) r'0:{src:([\'"])(?P<url>.*?)\1', webpage, 'formats', group='url', default=None)
if video_url is None: if video_url is None: