mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-06-05 23:16:48 +00:00
fix 注释跳过
This commit is contained in:
@@ -67,6 +67,9 @@ class CustomCommand(_PluginBase):
|
||||
# 分别执行命令,输入结果
|
||||
for time_conf in self._time_confs.split("\n"):
|
||||
if time_conf:
|
||||
if str(time_conf).startswith("#"):
|
||||
logger.info(f"已被注释,跳过 {time_conf}")
|
||||
continue
|
||||
if str(time_conf).count("#") == 2 or str(time_conf).count("#") == 3:
|
||||
name = str(time_conf).split("#")[0]
|
||||
cron = str(time_conf).split("#")[1]
|
||||
|
||||
Reference in New Issue
Block a user