mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 19:47:41 +08:00
fix: 修复目标目录无视频文件时转移字幕和音频触发目录删除
This commit is contained in:
@@ -166,7 +166,7 @@ class StorageChain(ChainBase):
|
|||||||
"""
|
"""
|
||||||
删除媒体文件,以及不含媒体文件的目录
|
删除媒体文件,以及不含媒体文件的目录
|
||||||
"""
|
"""
|
||||||
media_exts = settings.RMT_MEDIAEXT + settings.DOWNLOAD_TMPEXT
|
media_exts = settings.RMT_MEDIAEXT + settings.DOWNLOAD_TMPEXT + settings.RMT_SUBEXT + settings.RMT_AUDIOEXT
|
||||||
fileitem_path = Path(fileitem.path) if fileitem.path else Path("")
|
fileitem_path = Path(fileitem.path) if fileitem.path else Path("")
|
||||||
if len(fileitem_path.parts) <= 2:
|
if len(fileitem_path.parts) <= 2:
|
||||||
logger.warn(f"【{fileitem.storage}】{fileitem.path} 根目录或一级目录不允许删除")
|
logger.warn(f"【{fileitem.storage}】{fileitem.path} 根目录或一级目录不允许删除")
|
||||||
|
|||||||
Reference in New Issue
Block a user