mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-27 17:08:32 +00:00
style: re.search -> self._search_regex
This commit is contained in:
parent
0d9e92a456
commit
65724fe408
@ -789,7 +789,9 @@ def _real_extract(self, url):
|
||||
|
||||
# copied regex from VKWallPostIE
|
||||
# XXX: common code should be unified, moved to a class
|
||||
data_audio = re.search(r'data-audio="([^"]+)', webpage)[1]
|
||||
data_audio = self._search_regex(
|
||||
r'data-audio="([^"]+)', webpage, 'data-audio attr', group=1)
|
||||
|
||||
meta = self._parse_json(unescapeHTML(data_audio), track_id)
|
||||
one_more_id = meta[24]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user