fix 语法问题

This commit is contained in:
jeblove
2024-03-07 18:18:47 +08:00
parent a6742d1f32
commit f1092719b2
2 changed files with 4 additions and 3 deletions

View File

@@ -394,7 +394,7 @@
"DiagParamAdjust": {
"name": "诊断参数调整",
"description": "Emby专用插件|暂时性解决emby字幕偏移问题需要emby安装Diagnostics插件。",
"version": "1.1",
"version": "1.2",
"icon": "Themeengine_A.png",
"author": "jeblove",
"level": 1

View File

@@ -23,7 +23,7 @@ class DiagParamAdjust(_PluginBase):
# 插件图标
plugin_icon = "Themeengine_A.png"
# 插件版本
plugin_version = "1.1"
plugin_version = "1.2"
# 插件作者
plugin_author = "jeblove"
# 作者主页
@@ -355,7 +355,7 @@ class DiagParamAdjust(_PluginBase):
except KeyError:
# 已装插件,未设置过该参数
# logger.info('目标参数为空')
return None
return False
# 符合所有情况
if 'repeatlast' in replaceText \
@@ -412,6 +412,7 @@ class DiagParamAdjust(_PluginBase):
logger.info('参数正常,无需修正')
return True
elif state is None:
logger.info('插件退出')
return None
self.set_options()