fix qn note

Authored by: bashonly
This commit is contained in:
bashonly 2024-12-02 21:36:27 -06:00
parent 105f85908e
commit b75b12f712
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -168,8 +168,8 @@ class BilibiliBaseIE(InfoExtractor):
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048, **(query or {})}
if self.is_logged_in:
params.pop('try_look', None)
if query.get('qn'):
note = f'Downloading video format {query["qn"]} for cid {cid}'
if qn := params.get('qn'):
note = f'Downloading video format {qn} for cid {cid}'
else:
note = f'Downloading video formats for cid {cid}'