mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 14:57:16 +08:00
[twentymin] Code cleanup for regular expression search in html.
This commit is contained in:
parent
61f5aff95e
commit
b14da99b3c
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user