diff --git a/app/core/context.py b/app/core/context.py index d2bd0466..b8537c15 100644 --- a/app/core/context.py +++ b/app/core/context.py @@ -553,13 +553,13 @@ class MediaInfo: dicts["type"] = self.type.value if self.type else None dicts["detail_link"] = self.detail_link dicts["title_year"] = self.title_year - dicts["tmdb_info"] = self.tmdb_info if self.tmdb_info else None return dicts def clear(self): """ 去除多余数据,减小体积 """ + self.tmdb_info = {} self.douban_info = {} self.seasons = {} self.genres = [] diff --git a/app/plugins/autosignin/__init__.py b/app/plugins/autosignin/__init__.py index 34a1556d..f6ebf3a4 100644 --- a/app/plugins/autosignin/__init__.py +++ b/app/plugins/autosignin/__init__.py @@ -139,7 +139,7 @@ class AutoSignIn(_PluginBase): trigger="interval", hours=float(self._cron.strip()), name=f"站点自动{self._action}") - logger.info(f"站点自动{self._action}服务启动,执行周期 {self._cron}") + logger.info(f"站点自动{self._action}服务启动,执行周期 {self._cron} {self._start_time}-{self._end_time}") else: logger.error(f"站点自动{self._action}服务启动失败,周期格式错误") # 推送实时消息 diff --git a/app/schemas/context.py b/app/schemas/context.py index 75c5a8c1..d0a54266 100644 --- a/app/schemas/context.py +++ b/app/schemas/context.py @@ -146,8 +146,8 @@ class MediaInfo(BaseModel): status: Optional[str] = None # 标签 tagline: Optional[str] = None - # TMDB INFO - tmdb_info: Optional[dict] = {} + # 风格ID + genre_ids: Optional[list] = [] # 评价数量 vote_count: Optional[int] = 0 # 流行度