add SUBSCRIBE_SEARCH_INTERVAL

This commit is contained in:
jxxghp
2025-09-02 11:41:52 +08:00
parent ff7fb14087
commit 88049e741e
2 changed files with 3 additions and 1 deletions

View File

@@ -249,6 +249,8 @@ class ConfigModel(BaseModel):
SUBSCRIBE_STATISTIC_SHARE: bool = True
# 订阅搜索开关
SUBSCRIBE_SEARCH: bool = False
# 订阅搜索时间间隔(小时)
SUBSCRIBE_SEARCH_INTERVAL: int = 24
# 检查本地媒体库是否存在资源开关
LOCAL_EXISTS_SEARCH: bool = False

View File

@@ -249,7 +249,7 @@ class Scheduler(metaclass=SingletonClass):
"interval",
id="subscribe_search",
name="订阅搜索补全",
hours=24,
hours=settings.SUBSCRIBE_SEARCH_INTERVAL,
kwargs={
'job_id': 'subscribe_search'
}