Merge pull request #320 from thsrite/main

This commit is contained in:
jxxghp 2023-08-29 19:15:31 +08:00 committed by GitHub
commit 99ccbfef22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -553,13 +553,13 @@ class MediaInfo:
dicts["type"] = self.type.value if self.type else None dicts["type"] = self.type.value if self.type else None
dicts["detail_link"] = self.detail_link dicts["detail_link"] = self.detail_link
dicts["title_year"] = self.title_year dicts["title_year"] = self.title_year
dicts["tmdb_info"] = self.tmdb_info if self.tmdb_info else None
return dicts return dicts
def clear(self): def clear(self):
""" """
去除多余数据减小体积 去除多余数据减小体积
""" """
self.tmdb_info = {}
self.douban_info = {} self.douban_info = {}
self.seasons = {} self.seasons = {}
self.genres = [] self.genres = []

View File

@ -139,7 +139,7 @@ class AutoSignIn(_PluginBase):
trigger="interval", trigger="interval",
hours=float(self._cron.strip()), hours=float(self._cron.strip()),
name=f"站点自动{self._action}") 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: else:
logger.error(f"站点自动{self._action}服务启动失败,周期格式错误") logger.error(f"站点自动{self._action}服务启动失败,周期格式错误")
# 推送实时消息 # 推送实时消息

View File

@ -146,8 +146,8 @@ class MediaInfo(BaseModel):
status: Optional[str] = None status: Optional[str] = None
# 标签 # 标签
tagline: Optional[str] = None tagline: Optional[str] = None
# TMDB INFO # 风格ID
tmdb_info: Optional[dict] = {} genre_ids: Optional[list] = []
# 评价数量 # 评价数量
vote_count: Optional[int] = 0 vote_count: Optional[int] = 0
# 流行度 # 流行度