mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
parent
a9c165305c
commit
b28dc2a424
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class KidoodleTVBaseIE(InfoExtractor):
|
||||||
def get_field(field_name, idx, webpage, data):
|
def get_field(field_name, idx, webpage, data):
|
||||||
value = self._html_search_regex(rf'{idx}\.{field_name}=(?P<a>"?(?P<b>.+?)"?);', webpage,
|
value = self._html_search_regex(rf'{idx}\.{field_name}=(?P<a>"?(?P<b>.+?)"?);', webpage,
|
||||||
field_name, default=None, group=('a', 'b'))
|
field_name, default=None, group=('a', 'b'))
|
||||||
return value[1] if value[1] != value[0] else (data[value[0]] if value[0] in data else value[0])
|
return value[1] if value[1] != value[0] else (data.get(value[0]) or value[0])
|
||||||
|
|
||||||
idx = idx.replace('$', r'\$')
|
idx = idx.replace('$', r'\$')
|
||||||
video_id = get_field('id', idx, webpage, data)
|
video_id = get_field('id', idx, webpage, data)
|
||||||
|
|
Loading…
Reference in a new issue