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