fix bug
This commit is contained in:
parent
5bf3a7d3e8
commit
4c128be707
@ -525,6 +525,8 @@ class DownloadChain(ChainBase):
|
|||||||
if meta.begin_season \
|
if meta.begin_season \
|
||||||
and season not in meta.season_list:
|
and season not in meta.season_list:
|
||||||
continue
|
continue
|
||||||
|
if not episodes:
|
||||||
|
continue
|
||||||
exist_seasons = exists_tvs.seasons
|
exist_seasons = exists_tvs.seasons
|
||||||
if exist_seasons.get(season):
|
if exist_seasons.get(season):
|
||||||
# 取差集
|
# 取差集
|
||||||
|
@ -408,23 +408,20 @@ class DoubanRank(_PluginBase):
|
|||||||
logger.warn(f'未识别到媒体信息,标题:{title},豆瓣ID:{douban_id}')
|
logger.warn(f'未识别到媒体信息,标题:{title},豆瓣ID:{douban_id}')
|
||||||
continue
|
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:
|
if exist_flag:
|
||||||
logger.info(f'{mediainfo.title_year} 媒体库中已存在')
|
logger.info(f'{mediainfo.title_year} 媒体库中已存在')
|
||||||
action = "exist"
|
continue
|
||||||
else:
|
# 添加订阅
|
||||||
# 添加订阅
|
self.subscribechain.add(title=mediainfo.title,
|
||||||
self.subscribechain.add(title=mediainfo.title,
|
year=mediainfo.year,
|
||||||
year=mediainfo.year,
|
mtype=mediainfo.type,
|
||||||
mtype=mediainfo.type,
|
tmdbid=mediainfo.tmdb_id,
|
||||||
tmdbid=mediainfo.tmdb_id,
|
season=meta.begin_season,
|
||||||
season=meta.begin_season,
|
exist_ok=True,
|
||||||
exist_ok=True,
|
username="豆瓣榜单")
|
||||||
username="豆瓣榜单")
|
|
||||||
action = "subscribe"
|
|
||||||
# 存储历史记录
|
# 存储历史记录
|
||||||
history.append({
|
history.append({
|
||||||
"action": action,
|
|
||||||
"title": title,
|
"title": title,
|
||||||
"type": mediainfo.type.value,
|
"type": mediainfo.type.value,
|
||||||
"year": mediainfo.year,
|
"year": mediainfo.year,
|
||||||
|
@ -44,6 +44,5 @@ Cython~=0.29.35
|
|||||||
tvdb_api~=3.1
|
tvdb_api~=3.1
|
||||||
psutil~=5.9.4
|
psutil~=5.9.4
|
||||||
python_hosts~=1.0.3
|
python_hosts~=1.0.3
|
||||||
tmdbv3api~=1.7.7
|
|
||||||
watchdog~=3.0.0
|
watchdog~=3.0.0
|
||||||
tailer~=0.4.1
|
tailer~=0.4.1
|
Loading…
x
Reference in New Issue
Block a user