Zeal-L / BiliBili-Manga-Downloader

一个好用的哔哩哔哩漫画下载器,拥有图形界面,支持关键词搜索漫画和二维码登入,黑科技下载未解锁章节,多线程下载,多种保存格式,本地漫画管理,一键检查更新!
GNU Affero General Public License v3.0
908 stars 52 forks source link

[Bug] 双击库存报错 #143

Open spr-equinox opened 5 months ago

spr-equinox commented 5 months ago

问题描述

使用最新 develop 分支代码 双击本地库存时出现以下报错 TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given

预期行为

.

实际行为

.

截图或录屏

No response

哔哩哔哩漫画下载器版本号

develop

系统环境

Windows10

日志

TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given
TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given
TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given
TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given
TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given
TypeError: MangaUI.updateComicInfoEvent() takes from 2 to 3 positional arguments but 4 were given
Zeal-L commented 5 months ago

1245cd49c08a343ea25eb0af1da0ab3c7a5bbcc3 嗯,可能是在最近的这次提交里改成默认解析漫画信息的是biliplus,我还没善后呢,你可以 checkout 到之前的 commit

Zeal-L commented 5 months ago

@shadlc 来看看?

shadlc commented 5 months ago

bd40e310396e836f55ed17cac66eace53b7f6400 已在此处修复,是历史遗留问题

spr-equinox commented 5 months ago

貌似还有其他问题


07:44:06 | INFO | MainGUI: __init__ - 76 | save_method: Cbz压缩包
07:44:21 | INFO | Comic: getComicCover - 133 | 获取《食戟之灵》的封面图片中...
07:44:42 | ERROR | BiliPlus: retrieveAvailableEpisode - 280 | 漫画id:25467 处理BiliPlus解锁章节数据时意外失败!
07:44:42 | ERROR | BiliPlus: retrieveAvailableEpisode - 281 | BiliPlusComic.retrieveAvailableEpisode.<locals>._() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
  File "L:\CppProject\downloader\src\BiliPlus.py", line 244, in retrieveAvailableEpisode
    page_html = _(f"{biliplus_detail_url}&page={pages}")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\pypoetry\Cache\virtualenvs\bilibili-manga-downloader-W3WLXKGx-py3.12\Lib\site-packages\retrying.py", line 56, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\pypoetry\Cache\virtualenvs\bilibili-manga-downloader-W3WLXKGx-py3.12\Lib\site-packages\retrying.py", line 266, in call
    raise attempt.get()
          ^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\pypoetry\Cache\virtualenvs\bilibili-manga-downloader-W3WLXKGx-py3.12\Lib\site-packages\retrying.py", line 301, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "C:\Users\user\AppData\Local\pypoetry\Cache\virtualenvs\bilibili-manga-downloader-W3WLXKGx-py3.12\Lib\site-packages\six.py", line 719, in reraise
    raise value
  File "C:\Users\user\AppData\Local\pypoetry\Cache\virtualenvs\bilibili-manga-downloader-W3WLXKGx-py3.12\Lib\site-packages\retrying.py", line 251, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
                      ^^^^^^^^^^^^^^^^^^^
TypeError: BiliPlusComic.retrieveAvailableEpisode.<locals>._() takes 0 positional arguments but 1 was given

除此之外,如果默认解析漫画信息的是biliplus,扫描库存时会出现大量弹窗,一个个关掉很麻烦,希望优化一下 还有biliplus大量快速访问会出现 07:49:11 | WARNING | BiliPlus: _ - 206 | 漫画id:xxxxx 在BiliPlus爬取漫画信息失败! 状态码:503, 理由: Service Temporarily Unavailable 重试中...,多次错误会影响到扫描库存

Zeal-L commented 5 months ago

确实,biliplus 很不稳定,肯定不会做成默认选项的,之后我弄个开关,你先回退吧