mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 17:08:35 +08:00
fix #5661 插件package文件不存在时不报错
This commit is contained in:
@@ -87,7 +87,7 @@ class PluginHelper(metaclass=WeakSingleton):
|
||||
|
||||
res = self.__request_with_fallback(package_url, headers=settings.REPO_GITHUB_HEADERS(repo=f"{user}/{repo}"))
|
||||
if res is None or res.status_code != 200:
|
||||
return None
|
||||
return {} if res.status_code == 404 else None
|
||||
return self.__parse_plugin_index_response(res.text)
|
||||
|
||||
def get_plugin_package_version(self, pid: str, repo_url: str,
|
||||
|
||||
Reference in New Issue
Block a user