feat 本地存在标识&媒体库同步

This commit is contained in:
jxxghp
2023-07-22 11:49:22 +08:00
parent ce05b25f87
commit d93bc31092
24 changed files with 873 additions and 217 deletions

View File

@ -12,7 +12,7 @@ from app.core.context import MediaInfo
from app.core.metainfo import MetaInfo
from app.helper.rss import RssHelper
from app.log import logger
from app.schemas import MediaType, Notification, MessageChannel, NotificationType
from app.schemas import MediaType, Notification, MessageChannel
class DoubanChain(ChainBase):
@ -95,10 +95,10 @@ class DoubanChain(ChainBase):
"""
同步豆瓣想看数据,发送消息
"""
self.post_message(Notification(channel=channel, mtype=NotificationType.Subscribe,
self.post_message(Notification(channel=channel,
title="开始同步豆瓣想看 ...", userid=userid))
self.sync()
self.post_message(Notification(channel=channel, mtype=NotificationType.Subscribe,
self.post_message(Notification(channel=channel,
title="同步豆瓣想看数据完成!", userid=userid))
def sync(self):