This commit is contained in:
thsrite
2024-03-06 14:27:21 +08:00
parent caf04b43fb
commit 3a76877aca

View File

@@ -422,13 +422,22 @@ class CloudStrm(_PluginBase):
}]
"""
if self._enabled:
return [{
"id": "CloudStrm",
"name": "云盘strm文件生成服务",
"trigger": CronTrigger.from_crontab(self._cron),
"func": self.__scan,
"kwargs": {}
}]
if self._cron:
return [{
"id": "CloudStrm",
"name": "云盘strm文件生成服务",
"trigger": CronTrigger.from_crontab(self._cron),
"func": self.__scan,
"kwargs": {}
}]
else:
return [{
"id": "CloudStrm",
"name": "云盘strm文件生成服务",
"trigger": None,
"func": self.__scan,
"kwargs": {}
}]
return []
def get_api(self) -> List[Dict[str, Any]]: