This commit is contained in:
jxxghp 2023-08-04 20:16:18 +08:00
parent 5bf3a7d3e8
commit 4c128be707
3 changed files with 12 additions and 14 deletions

View File

@ -525,6 +525,8 @@ class DownloadChain(ChainBase):
if meta.begin_season \
and season not in meta.season_list:
continue
if not episodes:
continue
exist_seasons = exists_tvs.seasons
if exist_seasons.get(season):
# 取差集

View File

@ -408,11 +408,10 @@ class DoubanRank(_PluginBase):
logger.warn(f'未识别到媒体信息,标题:{title}豆瓣ID{douban_id}')
continue
# 查询缺失的媒体信息
exist_flag, no_exists = self.downloadchain.get_no_exists_info(meta=meta, mediainfo=mediainfo)
exist_flag, _ = self.downloadchain.get_no_exists_info(meta=meta, mediainfo=mediainfo)
if exist_flag:
logger.info(f'{mediainfo.title_year} 媒体库中已存在')
action = "exist"
else:
continue
# 添加订阅
self.subscribechain.add(title=mediainfo.title,
year=mediainfo.year,
@ -421,10 +420,8 @@ class DoubanRank(_PluginBase):
season=meta.begin_season,
exist_ok=True,
username="豆瓣榜单")
action = "subscribe"
# 存储历史记录
history.append({
"action": action,
"title": title,
"type": mediainfo.type.value,
"year": mediainfo.year,

View File

@ -44,6 +44,5 @@ Cython~=0.29.35
tvdb_api~=3.1
psutil~=5.9.4
python_hosts~=1.0.3
tmdbv3api~=1.7.7
watchdog~=3.0.0
tailer~=0.4.1