mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-31 04:22:25 +01:00
Revert "replace rf with fr", I misunderstood the PR comment / didnt see it was already cleaned up
This reverts commit 5bca3bb9a0
.
This commit is contained in:
parent
bc2124e496
commit
94c6a4f18d
1 changed files with 2 additions and 2 deletions
|
@ -473,7 +473,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):
|
||||
|
@ -488,7 +488,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…
Add table
Reference in a new issue