mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
feat: add access hash when parsing playlist entries
This commit is contained in:
parent
df89f7643d
commit
af005abdb3
@ -992,9 +992,10 @@ def _real_extract(self, url):
|
||||
|
||||
for ent in tracks:
|
||||
info = self._parse_track_meta(ent)
|
||||
ent_access = f'_{ent[24]}' if len(ent) >= 24 and ent[24] else ''
|
||||
track_id = info.pop('id')
|
||||
title = info.pop('title')
|
||||
audio_url = f'https://vk.com/audio{track_id}'
|
||||
audio_url = f'https://vk.com/audio{track_id}{ent_access}'
|
||||
|
||||
entries.append(self.url_result(
|
||||
audio_url, VKMusicIE, track_id, title, **info))
|
||||
|
Loading…
Reference in New Issue
Block a user