fix commands

This commit is contained in:
jxxghp
2023-06-17 20:46:34 +08:00
parent 4ddaa020de
commit e9d2ebca89
9 changed files with 179 additions and 62 deletions

View File

@ -1,5 +1,5 @@
from pathlib import Path
from typing import Optional
from typing import Optional, Union
from app.chain import ChainBase
from app.chain.download import DownloadChain
@ -28,6 +28,14 @@ class DoubanChain(ChainBase):
self.searchchain = SearchChain()
self.subscribechain = SubscribeChain()
def remote_sync(self, userid: Union[int, str]):
"""
同步豆瓣想看数据,发送消息
"""
self.post_message(title="开始同步豆瓣想看 ...", userid=userid)
self.sync()
self.post_message(title="同步豆瓣想看数据完成!", userid=userid)
def sync(self):
"""
通过用户RSS同步豆瓣想看数据