Merge pull request #1030 from Shurelol/main

This commit is contained in:
jxxghp 2023-11-01 08:35:37 +08:00 committed by GitHub
commit 560773a11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,10 @@ class ChainBase(metaclass=ABCMeta):
:return: 识别的媒体信息包括剧集信息
"""
if not tmdbid and hasattr(meta, "tmdbid"):
# 识别用名中含指定信息情形
tmdbid = meta.tmdbid
if not mtype and meta.type in [MediaType.TV, MediaType.MOVIE]:
mtype = meta.type
return self.run_module("recognize_media", meta=meta, mtype=mtype, tmdbid=tmdbid)
def match_doubaninfo(self, name: str, imdbid: str = None,