This commit is contained in:
jxxghp 2024-04-10 13:20:33 +08:00
parent 9ebb211589
commit e0c2ae0f0c

View File

@ -172,12 +172,12 @@ class SearchChain(ChainBase):
# 比对种子识别类型 # 比对种子识别类型
if torrent_meta.type == MediaType.TV and mediainfo.type != MediaType.TV: if torrent_meta.type == MediaType.TV and mediainfo.type != MediaType.TV:
logger.warn(f'{torrent.site_name} - {torrent.title} 种子标题类型为 {torrent_meta.type.value}' logger.warn(f'{torrent.site_name} - {torrent.title} 种子标题类型为 {torrent_meta.type.value}'
f'需要是 {mediainfo.type.value},不匹配') f'不匹配 {mediainfo.type.value}')
continue continue
# 比对种子在站点中的类型 # 比对种子在站点中的类型
if torrent.category == MediaType.TV.value and mediainfo.type != MediaType.TV: if torrent.category == MediaType.TV.value and mediainfo.type != MediaType.TV:
logger.warn(f'{torrent.site_name} - {torrent.title} 种子在站点中归类为 {torrent.category}' logger.warn(f'{torrent.site_name} - {torrent.title} 种子在站点中归类为 {torrent.category}'
f'需要是 {mediainfo.type.value},不匹配') f'不匹配 {mediainfo.type.value}')
continue continue
# 比对年份 # 比对年份
if mediainfo.year: if mediainfo.year:
@ -185,14 +185,14 @@ class SearchChain(ChainBase):
# 剧集年份,每季的年份可能不同 # 剧集年份,每季的年份可能不同
if torrent_meta.year and torrent_meta.year not in [year for year in if torrent_meta.year and torrent_meta.year not in [year for year in
mediainfo.season_years.values()]: mediainfo.season_years.values()]:
logger.warn(f'{torrent.site_name} - {torrent.title} 年份不匹配') logger.warn(f'{torrent.site_name} - {torrent.title} 年份不匹配 {mediainfo.season_years}')
continue continue
else: else:
# 电影年份上下浮动1年 # 电影年份上下浮动1年
if torrent_meta.year not in [str(int(mediainfo.year) - 1), if torrent_meta.year not in [str(int(mediainfo.year) - 1),
mediainfo.year, mediainfo.year,
str(int(mediainfo.year) + 1)]: str(int(mediainfo.year) + 1)]:
logger.warn(f'{torrent.site_name} - {torrent.title} 年份不匹配') logger.warn(f'{torrent.site_name} - {torrent.title} 年份不匹配 {mediainfo.year}')
continue continue
# 识别的中英文名 # 识别的中英文名
meta_names = { meta_names = {