add 事件广播

This commit is contained in:
jxxghp
2023-06-16 07:11:14 +08:00
parent ed14485092
commit 6a5e117f0b
49 changed files with 70 additions and 49 deletions

View File

@ -3,7 +3,7 @@ from typing import Optional, Any, List
from app.core.config import settings
from app.core.meta import MetaBase
from app.core.metainfo import MetaInfo
from app.utils.types import MediaType
from app.schemas.types import MediaType
class TorrentInfo:

View File

@ -2,7 +2,7 @@ from queue import Queue, Empty
from app.log import logger
from app.utils.singleton import Singleton
from app.utils.types import EventType
from app.schemas.types import EventType
class EventManager(metaclass=Singleton):

View File

@ -4,7 +4,7 @@ import anitopy
from app.core.meta.metabase import MetaBase
from app.core.meta.release_groups import ReleaseGroupsMatcher
from app.utils.string import StringUtils
from app.utils.types import MediaType
from app.schemas.types import MediaType
class MetaAnime(MetaBase):

View File

@ -4,7 +4,7 @@ import cn2an
import regex as re
from app.utils.string import StringUtils
from app.utils.types import MediaType
from app.schemas.types import MediaType
class MetaBase(object):

View File

@ -6,7 +6,7 @@ from app.core.meta.metabase import MetaBase
from app.core.meta.release_groups import ReleaseGroupsMatcher
from app.utils.string import StringUtils
from app.utils.tokens import Tokens
from app.utils.types import MediaType
from app.schemas.types import MediaType
class MetaVideo(MetaBase):