mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix ext
This commit is contained in:
@@ -332,7 +332,7 @@ class DownloadChain(ChainBase):
|
|||||||
continue
|
continue
|
||||||
# 只处理视频格式
|
# 只处理视频格式
|
||||||
if not Path(file).suffix \
|
if not Path(file).suffix \
|
||||||
or Path(file).suffix not in settings.RMT_MEDIAEXT:
|
or Path(file).suffix.lower() not in settings.RMT_MEDIAEXT:
|
||||||
continue
|
continue
|
||||||
files_to_add.append({
|
files_to_add.append({
|
||||||
"download_hash": _hash,
|
"download_hash": _hash,
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ class TorrentHelper(metaclass=Singleton):
|
|||||||
if not file:
|
if not file:
|
||||||
continue
|
continue
|
||||||
file_path = Path(file)
|
file_path = Path(file)
|
||||||
if file_path.suffix not in settings.RMT_MEDIAEXT:
|
if not file_path.suffix or file_path.suffix.lower() not in settings.RMT_MEDIAEXT:
|
||||||
continue
|
continue
|
||||||
# 只使用文件名识别
|
# 只使用文件名识别
|
||||||
meta = MetaInfo(file_path.stem)
|
meta = MetaInfo(file_path.stem)
|
||||||
|
|||||||
Reference in New Issue
Block a user