fix(bangumicoll): 修复版本判断逻辑

- 修复了对版本标志的判断逻辑,使用 hasattr 替代条件判断
This commit is contained in:
Attente
2025-06-27 07:46:02 +08:00
parent 74d044f5e1
commit f3c35f1fa8
2 changed files with 4 additions and 3 deletions

View File

@@ -990,12 +990,13 @@
"name": "Bangumi收藏订阅",
"description": "Bangumi用户收藏添加到订阅",
"labels": "订阅",
"version": "1.5.7",
"version": "1.5.8",
"icon": "bangumi_b.png",
"author": "Attente",
"level": 1,
"v2": true,
"history": {
"v1.5.8": "修复版本判断逻辑",
"v1.5.7": "适配MoviePilot v2.5.3",
"v1.5.6": "修复远程命令名称, 完善远程命令回执",
"v1.5.5": "添加剧集组(需V2.3.8+), 新增远程命令",

View File

@@ -37,7 +37,7 @@ class BangumiColl(_PluginBase):
# 插件图标
plugin_icon = "bangumi_b.png"
# 插件版本
plugin_version = "1.5.7"
plugin_version = "1.5.8"
# 插件作者
plugin_author = "Attente"
# 作者主页
@@ -51,7 +51,7 @@ class BangumiColl(_PluginBase):
# 私有属性
_scheduler = None
_is_v2 = True if settings.VERSION_FLAG else False
_is_v2 = hasattr(settings, "VERSION_FLAG")
# 配置属性
_enabled: bool = False