feat 本地存在标识&媒体库同步
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user