mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-28 03:25:52 +00:00
Revert "replace rf with fr", I misunderstood the PR comment / didnt see it was already cleaned up
This reverts commit 5bca3bb9a018dbf95ec447ef1b6824dcb101940d.
This commit is contained in:
parent
bc2124e496
commit
94c6a4f18d
@ -473,7 +473,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):
|
||||||
@ -488,7 +488,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