1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 01:18:30 +00:00

style: re.search -> self._search_regex

This commit is contained in:
DarkCat09 2025-03-29 14:57:33 +04:00
parent 0d9e92a456
commit 65724fe408
No known key found for this signature in database

View File

@ -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]