mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
add SUBSCRIBE_SEARCH_INTERVAL
This commit is contained in:
@@ -249,6 +249,8 @@ class ConfigModel(BaseModel):
|
|||||||
SUBSCRIBE_STATISTIC_SHARE: bool = True
|
SUBSCRIBE_STATISTIC_SHARE: bool = True
|
||||||
# 订阅搜索开关
|
# 订阅搜索开关
|
||||||
SUBSCRIBE_SEARCH: bool = False
|
SUBSCRIBE_SEARCH: bool = False
|
||||||
|
# 订阅搜索时间间隔(小时)
|
||||||
|
SUBSCRIBE_SEARCH_INTERVAL: int = 24
|
||||||
# 检查本地媒体库是否存在资源开关
|
# 检查本地媒体库是否存在资源开关
|
||||||
LOCAL_EXISTS_SEARCH: bool = False
|
LOCAL_EXISTS_SEARCH: bool = False
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -249,7 +249,7 @@ class Scheduler(metaclass=SingletonClass):
|
|||||||
"interval",
|
"interval",
|
||||||
id="subscribe_search",
|
id="subscribe_search",
|
||||||
name="订阅搜索补全",
|
name="订阅搜索补全",
|
||||||
hours=24,
|
hours=settings.SUBSCRIBE_SEARCH_INTERVAL,
|
||||||
kwargs={
|
kwargs={
|
||||||
'job_id': 'subscribe_search'
|
'job_id': 'subscribe_search'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user