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

无法下载番剧 #226

Open
SuniRein opened this issue Jul 2, 2024 · 5 comments
Open

无法下载番剧 #226

SuniRein opened this issue Jul 2, 2024 · 5 comments
Labels
api invalid api is invalid

Comments

@SuniRein
Copy link

SuniRein commented Jul 2, 2024

下载番剧时出错,经研究,尝试执行bilix info https://www.bilibili.com/bangumi/play/ep16231,出现以下报错信息。

Traceback (most recent call last):
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/download/utils.py", line 90, in wrapped
    return await func(client, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/sites/bilibili/api.py", line 431, in get_video_info
    return await _get_video_info_from_html(client, url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/sites/bilibili/api.py", line 447, in _get_video_info_from_html
    video_info = _parse_ep_html(url, html)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/sites/bilibili/api.py", line 399, in _parse_ep_html
    season_info = queries[0]['state']['data']['seasonInfo']
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'seasonInfo'

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

Traceback (most recent call last):
  File "/home/SuniRein/.local/bin/bilix", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/cli/main.py", line 374, in main
    loop.run_until_complete(cor)
  File "/opt/python3.11/lib/python3.11/asyncio/base_events.py", line 650, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/sites/bilibili/informer.py", line 88, in temp
    await informer.info_key(key)
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/sites/bilibili/informer.py", line 23, in info_key
    await self.parse_url(key)(self, key)
  File "/home/SuniRein/.local/lib/python3.11/site-packages/bilix/sites/bilibili/informer.py", line 36, in info_video
    video_info = await api.get_video_info(self.client, url)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/SuniRein/.local/lib/python3.11/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_video_info>

经测试,视频可以正常下载,只有番剧会出现这种情况。

@SuniRein SuniRein closed this as completed Jul 7, 2024
@SuniRein
Copy link
Author

SuniRein commented Jul 7, 2024

过几天后又好了。。。原因不明。。。

@SuniRein
Copy link
Author

现在又不行了。。。
已经持续了半个多月了。。。

@SuniRein SuniRein reopened this Aug 18, 2024
@Shexiaox
Copy link

在下载部分up主视频的时候也遇到这个错误

1 similar comment
@Shexiaox
Copy link

在下载部分up主视频的时候也遇到这个错误

@HFrost0
Copy link
Owner

HFrost0 commented Sep 24, 2024

番剧接口b站有更新,可能在近期会看下

@HFrost0 HFrost0 added the api invalid api is invalid label Sep 24, 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