mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
fix #2933
This commit is contained in:
@@ -220,7 +220,6 @@ class TransferChain(ChainBase):
|
|||||||
|
|
||||||
# 处理所有待整理目录或文件,默认一个整理路径或文件只有一个媒体信息
|
# 处理所有待整理目录或文件,默认一个整理路径或文件只有一个媒体信息
|
||||||
for trans_item in trans_items:
|
for trans_item in trans_items:
|
||||||
|
|
||||||
item_path = Path(trans_item.path)
|
item_path = Path(trans_item.path)
|
||||||
# 如果是目录且不是⼀蓝光原盘,获取所有文件并整理
|
# 如果是目录且不是⼀蓝光原盘,获取所有文件并整理
|
||||||
if (trans_item.type == "dir"
|
if (trans_item.type == "dir"
|
||||||
@@ -239,7 +238,7 @@ class TransferChain(ChainBase):
|
|||||||
|
|
||||||
# 过滤后缀和大小
|
# 过滤后缀和大小
|
||||||
file_items = [f for f in file_items
|
file_items = [f for f in file_items
|
||||||
if f.extension and (f".{f.extension.lower()}" in self.all_exts + settings.RMT_AUDIO_TRACK_EXT
|
if f.extension and (f".{f.extension.lower()}" in self.all_exts
|
||||||
and (not min_filesize or f.size > min_filesize * 1024 * 1024))]
|
and (not min_filesize or f.size > min_filesize * 1024 * 1024))]
|
||||||
|
|
||||||
if not file_items:
|
if not file_items:
|
||||||
@@ -453,7 +452,7 @@ class TransferChain(ChainBase):
|
|||||||
key=ProgressKey.FileTransfer)
|
key=ProgressKey.FileTransfer)
|
||||||
|
|
||||||
# 目录或文件整理完成
|
# 目录或文件整理完成
|
||||||
self.progress.update(text=f"{trans_item.path} 整理完成,正在执行后续处理 ...",
|
self.progress.update(text=f"{fileitem.path} 整理完成,正在执行后续处理 ...",
|
||||||
key=ProgressKey.FileTransfer)
|
key=ProgressKey.FileTransfer)
|
||||||
|
|
||||||
# 执行后续处理
|
# 执行后续处理
|
||||||
|
|||||||
Reference in New Issue
Block a user