mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 23:16:47 +00:00
fix 语法问题
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user