mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 10:24:33 +01:00
fix typo and small bugs in code.
This commit is contained in:
parent
6532b27c71
commit
ac144ed961
@ -152,7 +152,7 @@ class BiliBiliIE(InfoExtractor):
|
|||||||
|
|
||||||
tags_info = self._download_json(
|
tags_info = self._download_json(
|
||||||
"https://api.bilibili.com/x/web-interface/view/detail/tag?aid=%s" % (aid), video_id,
|
"https://api.bilibili.com/x/web-interface/view/detail/tag?aid=%s" % (aid), video_id,
|
||||||
'Geting video tags.', 'Unable to get Login/User Information.')
|
'Geting video tags.', 'Unable to get video tags.')
|
||||||
if tags_info['code'] != 0:
|
if tags_info['code'] != 0:
|
||||||
self._report_error(tags_info)
|
self._report_error(tags_info)
|
||||||
tags_info = tags_info['data']
|
tags_info = tags_info['data']
|
||||||
@ -290,6 +290,7 @@ class BiliBiliIE(InfoExtractor):
|
|||||||
video_formats[play_info["quality"]] = play_info['durl']
|
video_formats[play_info["quality"]] = play_info['durl']
|
||||||
video_formats_size[play_info["quality"]] = self._calculate_size(play_info['durl'])
|
video_formats_size[play_info["quality"]] = self._calculate_size(play_info['durl'])
|
||||||
durl_length.append(len(play_info['durl']))
|
durl_length.append(len(play_info['durl']))
|
||||||
|
self._set_cookie(domain=".bilibili.com", name="CURRENT_QUALITY", value="120")
|
||||||
for i in range(max(durl_length)):
|
for i in range(max(durl_length)):
|
||||||
entry = {}
|
entry = {}
|
||||||
entry.update(info)
|
entry.update(info)
|
||||||
|
Loading…
Reference in New Issue
Block a user