mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 19:35:19 +01:00
[wdr] Relax media link regex (closes #14447)
This commit is contained in:
parent
b0dde6686c
commit
8992331621
|
@ -22,8 +22,13 @@ class WDRBaseIE(InfoExtractor):
|
||||||
# for wdrmaus, in a tag with the class "videoButton" (previously a link
|
# for wdrmaus, in a tag with the class "videoButton" (previously a link
|
||||||
# to the page in a multiline "videoLink"-tag)
|
# to the page in a multiline "videoLink"-tag)
|
||||||
json_metadata = self._html_search_regex(
|
json_metadata = self._html_search_regex(
|
||||||
r'class=(?:"(?:mediaLink|wdrrPlayerPlayBtn|videoButton)\b[^"]*"[^>]+|"videoLink\b[^"]*"[\s]*>\n[^\n]*)data-extension="([^"]+)"',
|
r'''(?sx)class=
|
||||||
webpage, 'media link', default=None, flags=re.MULTILINE)
|
(?:
|
||||||
|
(["\'])(?:mediaLink|wdrrPlayerPlayBtn|videoButton)\b.*?\1[^>]+|
|
||||||
|
(["\'])videoLink\b.*?\2[\s]*>\n[^\n]*
|
||||||
|
)data-extension=(["\'])(?P<data>(?:(?!\3).)+)\3
|
||||||
|
''',
|
||||||
|
webpage, 'media link', default=None, group='data')
|
||||||
|
|
||||||
if not json_metadata:
|
if not json_metadata:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user