diff --git a/app/scheduler.py b/app/scheduler.py index dc998098..c60a2598 100644 --- a/app/scheduler.py +++ b/app/scheduler.py @@ -37,6 +37,7 @@ class Scheduler(metaclass=Singleton): }) def __init__(self): + return # CookieCloud定时同步 if settings.COOKIECLOUD_INTERVAL: self._scheduler.add_job(CookieCloudChain().process, diff --git a/app/schemas/context.py b/app/schemas/context.py index 87da07c0..2b581b9d 100644 --- a/app/schemas/context.py +++ b/app/schemas/context.py @@ -117,7 +117,7 @@ class MediaInfo(BaseModel): class TorrentInfo(BaseModel): # 站点ID - site: int = None + site: Optional[int] = None # 站点名称 site_name: Optional[str] = None # 站点Cookie diff --git a/app/schemas/site.py b/app/schemas/site.py index 0c59393f..b66d0b67 100644 --- a/app/schemas/site.py +++ b/app/schemas/site.py @@ -5,13 +5,13 @@ from pydantic import BaseModel class Site(BaseModel): # ID - id: int + id: Optional[int] # 站点名称 - name: str + name: Optional[str] # 站点主域名Key - domain: str + domain: Optional[str] # 站点地址 - url: str + url: Optional[str] # 站点优先级 pri: Optional[int] = 0 # RSS地址 diff --git a/app/schemas/subscribe.py b/app/schemas/subscribe.py index 7b63dcda..bebd37c0 100644 --- a/app/schemas/subscribe.py +++ b/app/schemas/subscribe.py @@ -4,16 +4,16 @@ from pydantic import BaseModel class Subscribe(BaseModel): - id: int + id: Optional[int] # 订阅名称 - name: str + name: Optional[str] # 订阅年份 - year: str + year: Optional[str] # 订阅类型 电影/电视剧 - type: str + type: Optional[str] # 搜索关键字 keyword: Optional[str] - tmdbid: int + tmdbid: Optional[int] doubanid: Optional[str] # 季号 season: Optional[int] @@ -22,7 +22,7 @@ class Subscribe(BaseModel): # 背景图 backdrop: Optional[str] # 评分 - vote: int = 0 + vote: Optional[int] # 描述 description: Optional[str] # 过滤规则 @@ -40,7 +40,7 @@ class Subscribe(BaseModel): # 附加信息 note: Optional[str] # 状态:N-新建, R-订阅中 - state: str + state: Optional[str] class Config: orm_mode = True