mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-12 11:53:43 +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)
|
||||
|
||||
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)
|
||||
|
||||
if self._downloader.params.get('noplaylist', False):
|
||||
@ -486,7 +486,7 @@ class ZDFChannelIE(ZDFBaseIE):
|
||||
|
||||
def check_video(m):
|
||||
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='')
|
||||
v_ref = extract_attributes(v_ref)
|
||||
return v_ref.get('data-target-video-type') != 'novideo'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user