1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 08:47:15 +08:00

[twentymin] Code cleanup for regular expression search in html.

This commit is contained in:
Alex Seiler 2017-01-17 17:39:35 +01:00
parent 61f5aff95e
commit b14da99b3c

View File

@ -91,10 +91,10 @@ class TwentyMinutenIE(InfoExtractor):
if not video_id:
params = self._html_search_regex(
r'<iframe[^>]+src="(?:https?:)?//www\.20min\.ch/videoplayer/videoplayer\.html\?params=(.+?[^"])"',
webpage, '20min embed URL', default=None)
webpage, '20min embed URL', default='')
video_id = self._search_regex(
r'.*videoId@(\d+)',
params, 'Video Id', default=None) if params is not None else ''
params, 'Video Id', default='')
description = self._html_search_meta(
'description', webpage, 'description')