mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix:移除更新阻断
This commit is contained in:
@@ -8,7 +8,6 @@ from app.log import logger
|
|||||||
from app.utils.http import RequestUtils
|
from app.utils.http import RequestUtils
|
||||||
from app.utils.string import StringUtils
|
from app.utils.string import StringUtils
|
||||||
from app.utils.system import SystemUtils
|
from app.utils.system import SystemUtils
|
||||||
from version import APP_VERSION
|
|
||||||
|
|
||||||
|
|
||||||
class ResourceHelper:
|
class ResourceHelper:
|
||||||
@@ -59,12 +58,6 @@ class ResourceHelper:
|
|||||||
if rtype == "auth":
|
if rtype == "auth":
|
||||||
# 站点认证资源
|
# 站点认证资源
|
||||||
local_version = SitesHelper().auth_version
|
local_version = SitesHelper().auth_version
|
||||||
# 阻断站点认证资源v2.3.0以下的版本直接更新,避免无限重启
|
|
||||||
if StringUtils.compare_version(local_version, "<", "2.3.0"):
|
|
||||||
continue
|
|
||||||
# 阻断主程序版本v2.6.3以下的版本直接更新,避免搜索异常
|
|
||||||
if StringUtils.compare_version(APP_VERSION, "<", "2.6.3"):
|
|
||||||
continue
|
|
||||||
elif rtype == "sites":
|
elif rtype == "sites":
|
||||||
# 站点索引资源
|
# 站点索引资源
|
||||||
local_version = SitesHelper().indexer_version
|
local_version = SitesHelper().indexer_version
|
||||||
|
|||||||
Reference in New Issue
Block a user