use None as default

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
N/Ame 2024-12-03 16:22:57 +13:00 committed by GitHub
parent a97f2be414
commit 105f85908e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,8 +164,8 @@ class BilibiliBaseIE(InfoExtractor):
params['w_rid'] = hashlib.md5(f'{query}{self._get_wbi_key(video_id)}'.encode()).hexdigest()
return params
def _download_playinfo(self, bvid, cid, headers=None, query={}):
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048, **query}
def _download_playinfo(self, bvid, cid, headers=None, query=None):
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048, **(query or {})}
if self.is_logged_in:
params.pop('try_look', None)
if query.get('qn'):