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

style: line breaks

This commit is contained in:
DarkCat09 2025-03-29 22:24:09 +04:00
parent 84ef9661aa
commit c0fd87eb4b
No known key found for this signature in database

View File

@ -832,7 +832,8 @@ def _real_extract(self, url):
# copied regex from VKWallPostIE # copied regex from VKWallPostIE
# XXX: common code should be unified, moved to a class # XXX: common code should be unified, moved to a class
data_audio = self._search_regex( data_audio = self._search_regex(
r'data-audio="([^"]+)', webpage, 'data-audio attr', group=1) r'data-audio="([^"]+)',
webpage, 'data-audio attr', group=1)
meta = self._parse_json(unescapeHTML(data_audio), track_id) meta = self._parse_json(unescapeHTML(data_audio), track_id)
one_more_id = meta[24] one_more_id = meta[24]
@ -885,8 +886,7 @@ def _real_extract(self, url):
audio_url = f'https://vk.com/audio{track_id}' audio_url = f'https://vk.com/audio{track_id}'
entries.append(self.url_result( entries.append(self.url_result(
audio_url, VKMusicIE, track_id, title, audio_url, VKMusicIE, track_id, title, **info))
**info))
artist = meta.get('authorName') artist = meta.get('authorName')
thumbnail = meta.get('coverUrl') thumbnail = meta.get('coverUrl')