mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-08 08:26:05 +00:00
cleanup
This commit is contained in:
parent
6cda50c0aa
commit
ee8e09e0cb
@ -471,7 +471,7 @@ class ZDFChannelIE(ZDFBaseIE):
|
|||||||
webpage = self._download_webpage(url, channel_id)
|
webpage = self._download_webpage(url, channel_id)
|
||||||
|
|
||||||
matches = re.finditer(
|
matches = re.finditer(
|
||||||
fr'''<div\b[^>]*?\sdata-plusbar-id\s*=\s*(["'])(?P<p_id>[\w-]+)\1[^>]*?\sdata-plusbar-url=\1(?P<url>{ZDFIE._VALID_URL})\1''',
|
rf'''<div\b[^>]*?\sdata-plusbar-id\s*=\s*(["'])(?P<p_id>[\w-]+)\1[^>]*?\sdata-plusbar-url=\1(?P<url>{ZDFIE._VALID_URL})\1''',
|
||||||
webpage)
|
webpage)
|
||||||
|
|
||||||
if self._downloader.params.get('noplaylist', False):
|
if self._downloader.params.get('noplaylist', False):
|
||||||
@ -486,7 +486,7 @@ class ZDFChannelIE(ZDFBaseIE):
|
|||||||
|
|
||||||
def check_video(m):
|
def check_video(m):
|
||||||
v_ref = self._search_regex(
|
v_ref = self._search_regex(
|
||||||
fr'''(<a\b[^>]*?\shref\s*=[^>]+?\sdata-target-id\s*=\s*(["']){m.group('p_id')}\2[^>]*>)''',
|
rf'''(<a\b[^>]*?\shref\s*=[^>]+?\sdata-target-id\s*=\s*(["']){m.group("p_id")}\2[^>]*>)''',
|
||||||
webpage, 'check id', default='')
|
webpage, 'check id', default='')
|
||||||
v_ref = extract_attributes(v_ref)
|
v_ref = extract_attributes(v_ref)
|
||||||
return v_ref.get('data-target-video-type') != 'novideo'
|
return v_ref.get('data-target-video-type') != 'novideo'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user