-
Notifications
You must be signed in to change notification settings - Fork 90
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
插件仓库下载列表未准确识别 #239
Comments
这是生成该说明文档commit的action(Scheduled update #14168),于Fetch data阶段获取start_stop_helper_r release后可见报错:not 200 status code when fetching repository file readme-zh_cn.md: 404 https://github.com/MCDReforged/PluginCatalogue/actions/runs/3922973249/jobs/6706276907 |
这个问题看起来不是这个插件的,这个插件没有写 |
找到原因了,请求 API 并没有做翻页,导致没有获取到较老的 release plugin.py url = f'https://api.github.com/repos/{plugin.repos_path}/releases'
resp: Optional[List[dict]]
new_etag: str
resp, new_etag = utils.request_github_api(url, etag=self.etag) utils.py
|
根据文档,只返回了30个release…… |
似乎没有给总页数? |
可以翻到为空的最后一页就行了,或者查看有内容的最后一页是不是达到最大数量 |
master...multi-page-releases-support |
无论多repo还是单repo,总共需要获取的release总数是不变的,反而单repo会节省使用次数,因为不到一页的插件被合并了 |
对的 理论上做好缓存可以节省API使用次数 但反正我这个分支暂时没做( |
插件 StartStopHelperR 的下载列表未识别到 release
https://github.com/MCDReforged/PluginCatalogue/blob/catalogue/plugins/start_stop_helper_r/readme.md
https://github.com/AnzhiZhang/MCDReforgedPlugins/releases/tag/start_stop_helper_r-v0.1.0
原因未知
9e71dc7#diff-a2f8344b51630c0fbfc8bb902f079e56afa0076cdae77db97be7b7c6970fce0c
The text was updated successfully, but these errors were encountered: