Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法下载视频列表 #194

Closed
lucifere02 opened this issue Nov 23, 2023 · 4 comments
Closed

无法下载视频列表 #194

lucifere02 opened this issue Nov 23, 2023 · 4 comments
Labels
api invalid api is invalid

Comments

@lucifere02
Copy link

使用bilix col url指令无法下载视频列表,但是测试了一下合集能正常下载的。
PS D:\bilibackup> bilix col 'https://space.bilibili.com/946974/channel/seriesdetail?sid=3338420&ctype=0'

Traceback (most recent call last):
File "c:\python38\lib\site-packages\bilix\download\utils.py", line 90, in wrapped
return await func(client, *args, **kwargs)
File "c:\python38\lib\site-packages\bilix\sites\bilibili\api.py", line 65, in get_list_info
list_name, up_name = meta['data']['meta']['name'], up_info['data']['name']
KeyError: 'data'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Python38\Scripts\bilix.exe_main
.py", line 7, in
File "C:\Users\c3\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\c3\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\c3\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\c3\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "c:\python38\lib\site-packages\bilix\cli\main.py", line 374, in main
loop.run_until_complete(cor)
File "c:\python38\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "c:\python38\lib\site-packages\bilix\sites\bilibili\downloader.py", line 100, in get_collect_or_list
list_name, up_name, bvids = await api.get_list_info(self.client, url)
File "c:\python38\lib\site-packages\bilix\download\utils.py", line 94, in wrapped
raise APIParseError(e, func) from e
bilix.exception.APIParseError: APIParseError Caused by KeyError in bilix.sites.bilibili.api:get_list_info

@HFrost0
Copy link
Owner

HFrost0 commented Nov 23, 2023

b站视频列表的接口可能已经变动了呢,这个需要重新适配一下

@HFrost0 HFrost0 added the bug Something isn't working label Nov 23, 2023
@HFrost0 HFrost0 added api invalid api is invalid and removed bug Something isn't working labels Dec 22, 2023
@dengjin4
Copy link

dengjin4 commented Jan 7, 2024

当我想下载某一个up主的视频时,一直出现api error:

bilix get_up 'https://space.bilibili.com/672328094' --num 1

Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.8/site-packages/bilix/download/utils.py", line 90, in wrapped
return await func(client, *args, **kwargs)
File "/opt/anaconda3/lib/python3.8/site-packages/bilix/sites/bilibili/api.py", line 190, in get_up_info
up_name = info["data"]["list"]["vlist"][0]["author"]
KeyError: 'list'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/anaconda3/bin/bilix", line 8, in
sys.exit(main())
File "/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/opt/anaconda3/lib/python3.8/site-packages/bilix/cli/main.py", line 374, in main
loop.run_until_complete(cor)
File "/opt/anaconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/opt/anaconda3/lib/python3.8/site-packages/bilix/sites/bilibili/downloader.py", line 251, in get_up
up_name, total_size, bv_ids = await api.get_up_info(self.client, url_or_mid, 1, ps, order, keyword)
File "/opt/anaconda3/lib/python3.8/site-packages/bilix/download/utils.py", line 94, in wrapped
raise APIParseError(e, func) from e
bilix.exception.APIParseError: APIParseError Caused by KeyError in bilix.sites.bilibili.api:get_up_info

@HFrost0
Copy link
Owner

HFrost0 commented Jan 8, 2024

bilix get_up 'https://space.bilibili.com/672328094' --num 1

@dengjin4 登录之后试一下,b站现在有些接口做了限制

@HFrost0 HFrost0 closed this as completed Jan 19, 2024
@HFrost0 HFrost0 reopened this Jan 19, 2024
@HFrost0
Copy link
Owner

HFrost0 commented Jan 27, 2024

fixed in 0.18.7

@HFrost0 HFrost0 closed this as completed Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api invalid api is invalid
Projects
None yet
Development

No branches or pull requests

3 participants