mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix
This commit is contained in:
@@ -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]]:
|
||||
|
||||
Reference in New Issue
Block a user