mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-14 02:00:31 +08:00
目录监控服务去重
This commit is contained in:
@@ -129,6 +129,9 @@ class Monitor(metaclass=Singleton):
|
||||
if not monitor_dirs:
|
||||
return
|
||||
|
||||
# 按下载目录去重
|
||||
monitor_dirs = list({f"{d.storage}_{d.download_path}": d for d in monitor_dirs}.values())
|
||||
|
||||
# 启动定时服务进程
|
||||
self._scheduler = BackgroundScheduler(timezone=settings.TZ)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user