mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
fix plugin install
This commit is contained in:
@@ -291,7 +291,7 @@ class PluginHelper(metaclass=WeakSingleton):
|
|||||||
# 如果 package_version 存在(如 "v2"),则加上版本号
|
# 如果 package_version 存在(如 "v2"),则加上版本号
|
||||||
if package_version:
|
if package_version:
|
||||||
file_api += f".{package_version}"
|
file_api += f".{package_version}"
|
||||||
file_api += f"/{pid}"
|
file_api += f"/{pid.lower()}"
|
||||||
|
|
||||||
res = self.__request_with_fallback(file_api,
|
res = self.__request_with_fallback(file_api,
|
||||||
headers=settings.REPO_GITHUB_HEADERS(repo=user_repo),
|
headers=settings.REPO_GITHUB_HEADERS(repo=user_repo),
|
||||||
@@ -1053,7 +1053,7 @@ class PluginHelper(metaclass=WeakSingleton):
|
|||||||
# 如果 package_version 存在(如 "v2"),则加上版本号
|
# 如果 package_version 存在(如 "v2"),则加上版本号
|
||||||
if package_version:
|
if package_version:
|
||||||
file_api += f".{package_version}"
|
file_api += f".{package_version}"
|
||||||
file_api += f"/{pid}"
|
file_api += f"/{pid.lower()}"
|
||||||
|
|
||||||
res = await self.__async_request_with_fallback(file_api,
|
res = await self.__async_request_with_fallback(file_api,
|
||||||
headers=settings.REPO_GITHUB_HEADERS(repo=user_repo),
|
headers=settings.REPO_GITHUB_HEADERS(repo=user_repo),
|
||||||
|
|||||||
Reference in New Issue
Block a user