feat:Follow订阅分享人功能

This commit is contained in:
jxxghp
2025-01-22 13:32:13 +08:00
parent 5054ffe7e4
commit f34e36c571
5 changed files with 161 additions and 49 deletions

View File

@@ -92,6 +92,11 @@ class Scheduler(metaclass=Singleton):
"func": SubscribeChain().refresh,
"running": False,
},
"subscribe_follow": {
"name": "Follow分享订阅",
"func": SubscribeChain().follow,
"running": False,
},
"transfer": {
"name": "下载文件整理",
"func": TransferChain().process,
@@ -241,6 +246,18 @@ class Scheduler(metaclass=Singleton):
}
)
# Follow分享订阅每6小时
self._scheduler.add_job(
self.start,
"interval",
id="subscribe_follow",
name="Follow分享订阅",
hours=6,
kwargs={
'job_id': 'subscribe_follow'
}
)
# 下载器文件转移每5分钟
self._scheduler.add_job(
self.start,