豆瓣想看移植为插件

This commit is contained in:
jxxghp
2023-07-25 08:51:36 +08:00
parent 3b5863befa
commit 478c0cb5b6
11 changed files with 429 additions and 161 deletions

View File

@ -4,19 +4,18 @@ from typing import Any, Union
from app.chain import ChainBase
from app.chain.cookiecloud import CookieCloudChain
from app.chain.douban import DoubanChain
from app.chain.download import DownloadChain
from app.chain.mediaserver import MediaServerChain
from app.chain.site import SiteChain
from app.chain.subscribe import SubscribeChain
from app.chain.transfer import TransferChain
from app.core.event import Event as ManagerEvent
from app.core.event import eventmanager, EventManager
from app.core.plugin import PluginManager
from app.core.event import Event as ManagerEvent
from app.log import logger
from app.schemas.types import EventType, MessageChannel
from app.utils.object import ObjectUtils
from app.utils.singleton import Singleton
from app.schemas.types import EventType, MessageChannel
class CommandChian(ChainBase):
@ -70,11 +69,6 @@ class Command(metaclass=Singleton):
"description": "禁用站点",
"data": {}
},
"/douban_sync": {
"func": DoubanChain().remote_sync,
"description": "同步豆瓣想看",
"data": {}
},
"/mediaserver_sync": {
"func": MediaServerChain().remote_sync,
"description": "同步媒体服务器",