1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-10-02 23:47:08 +02:00

Update yt_dlp/extractor/qqmusic.py

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
This commit is contained in:
c-basalt 2024-06-29 21:46:21 -04:00 committed by GitHub
parent 816a5c33ee
commit ce17a1dd43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,7 +203,7 @@ def _real_extract(self, url):
self.raise_login_required()
if traverse_obj(data, ('req_2', 'code')):
self.report_warning(f'Failed to download lyric, error {data["req_2"]["code"]}')
self.report_warning(f'Failed to download lyric, error {data["req_2"]["code"]!r}')
lrc_content = traverse_obj(data, ('req_2', 'data', 'lyric', {lambda x: base64.b64decode(x).decode('utf-8')}))
info_dict = {