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

get_up 命令执行报错 #87

Closed
WAAutoMaton opened this issue Jan 21, 2023 · 3 comments
Closed

get_up 命令执行报错 #87

WAAutoMaton opened this issue Jan 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@WAAutoMaton
Copy link

尝试执行

bilix get_up "https://space.bilibili.com/316568752/"

时,产生如下错误:

Traceback (most recent call last):
  File "/home/<username>/.local/bin/bilix", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/<username>/.local/lib/python3.10/site-packages/bilix/__main__.py", line 322, in main
    loop.run_until_complete(cor)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/<username>/.local/lib/python3.10/site-packages/bilix/download/downloader_bilibili.py", line 257, in get_up_videos
    up_name, total_size, bv_ids = await api.get_up_info(self.client, url_or_mid, 1, ps, order, keyword)
  File "/home/<username>/.local/lib/python3.10/site-packages/bilix/api/bilibili.py", line 144, in get_up_info
    up_name = info['data']['list']['vlist'][0]['author']
KeyError: 'list'

尝试下载其他up视频( 如 bilix get_up "https://space.bilibili.com/282994") 时, 可正常工作. 目前仅发现在该up时失败.

bilix 版本: Version 0.11.4
shell 版本: fish, version 3.5.1
Python版本: Python 3.10.8

@HFrost0 HFrost0 added the bug Something isn't working label Jan 21, 2023
@HFrost0
Copy link
Owner

HFrost0 commented Jan 22, 2023

看了下应该是b站有新的接口。对这位up,老接口https://api.bilibili.com/x/space/arc/search返回-401非法访问,新接口https://api.bilibili.com/x/space/wbi/arc/search正常。

@HFrost0
Copy link
Owner

HFrost0 commented Jan 28, 2023

在0.12.1中已修复

@HFrost0 HFrost0 closed this as completed Jan 28, 2023
@nlp4whp
Copy link

nlp4whp commented Nov 4, 2023

在0.12.1中已修复

新接口现在也会报-401了,不过我从chrome看到的的确是代码里的接口
https://api.bilibili.com/x/space/wbi/arc/search?mid=672328094&ps=30&tid=0&pn=1&keyword=&order=pubdate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants