fix subscribe
This commit is contained in:
parent
66f081de98
commit
03f59398f2
@ -24,7 +24,11 @@ class Subscribe(Base):
|
|||||||
# 季号
|
# 季号
|
||||||
season = Column(Integer)
|
season = Column(Integer)
|
||||||
# 海报
|
# 海报
|
||||||
image = Column(String)
|
poster = Column(String)
|
||||||
|
# 背景图
|
||||||
|
backdrop = Column(String)
|
||||||
|
# 评分
|
||||||
|
vote = Column(Integer)
|
||||||
# 简介
|
# 简介
|
||||||
description = Column(String)
|
description = Column(String)
|
||||||
# 过滤规则
|
# 过滤规则
|
||||||
|
@ -20,7 +20,9 @@ class SubscribeOper(DbOper):
|
|||||||
tmdbid=mediainfo.tmdb_id,
|
tmdbid=mediainfo.tmdb_id,
|
||||||
imdbid=mediainfo.imdb_id,
|
imdbid=mediainfo.imdb_id,
|
||||||
tvdbid=mediainfo.tvdb_id,
|
tvdbid=mediainfo.tvdb_id,
|
||||||
image=mediainfo.get_poster_image(),
|
poster=mediainfo.get_poster_image(),
|
||||||
|
backdrop=mediainfo.get_backdrop_image(),
|
||||||
|
vote=mediainfo.vote_average,
|
||||||
description=mediainfo.overview,
|
description=mediainfo.overview,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
if not subscribe.exists(self._db, tmdbid=mediainfo.tmdb_id, season=kwargs.get('season')):
|
if not subscribe.exists(self._db, tmdbid=mediainfo.tmdb_id, season=kwargs.get('season')):
|
||||||
|
@ -18,7 +18,11 @@ class Subscribe(BaseModel):
|
|||||||
# 季号
|
# 季号
|
||||||
season: Optional[int]
|
season: Optional[int]
|
||||||
# 海报
|
# 海报
|
||||||
image: Optional[str]
|
poster: Optional[str]
|
||||||
|
# 背景图
|
||||||
|
backdrop: Optional[str]
|
||||||
|
# 评分
|
||||||
|
vote: int = 0
|
||||||
# 描述
|
# 描述
|
||||||
description: Optional[str]
|
description: Optional[str]
|
||||||
# 过滤规则
|
# 过滤规则
|
||||||
|
Loading…
x
Reference in New Issue
Block a user