fix bug
This commit is contained in:
parent
2536119f60
commit
3d0c06013d
@ -334,7 +334,7 @@ class MediaChain(ChainBase, metaclass=Singleton):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def manual_scrape(self, storage: str, fileitem: schemas.FileItem,
|
def manual_scrape(self, storage: str, fileitem: schemas.FileItem,
|
||||||
meta: MetaBase, mediainfo: MediaInfo, init_folder: bool = True):
|
meta: MetaBase = None, mediainfo: MediaInfo = None, init_folder: bool = True):
|
||||||
"""
|
"""
|
||||||
手动刮削媒体信息
|
手动刮削媒体信息
|
||||||
"""
|
"""
|
||||||
@ -399,7 +399,12 @@ class MediaChain(ChainBase, metaclass=Singleton):
|
|||||||
if fileitem.type == "file" \
|
if fileitem.type == "file" \
|
||||||
and (not filepath.suffix or filepath.suffix.lower() not in settings.RMT_MEDIAEXT):
|
and (not filepath.suffix or filepath.suffix.lower() not in settings.RMT_MEDIAEXT):
|
||||||
return
|
return
|
||||||
|
if not meta:
|
||||||
|
meta = MetaInfoPath(filepath)
|
||||||
if not mediainfo:
|
if not mediainfo:
|
||||||
|
mediainfo = self.recognize_by_meta(meta)
|
||||||
|
if not mediainfo:
|
||||||
|
logger.warn(f"{filepath} 无法识别文件媒体信息!")
|
||||||
return
|
return
|
||||||
logger.info(f"开始刮削:{filepath} ...")
|
logger.info(f"开始刮削:{filepath} ...")
|
||||||
if mediainfo.type == MediaType.MOVIE:
|
if mediainfo.type == MediaType.MOVIE:
|
||||||
|
@ -905,6 +905,7 @@ class TransferChain(ChainBase):
|
|||||||
season=season,
|
season=season,
|
||||||
epformat=epformat,
|
epformat=epformat,
|
||||||
min_filesize=min_filesize,
|
min_filesize=min_filesize,
|
||||||
|
scrape=scrape,
|
||||||
force=force)
|
force=force)
|
||||||
return state, errmsg
|
return state, errmsg
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user