将文件后缀名检查改为不区分大小写

This commit is contained in:
Dean
2024-08-30 17:55:17 +08:00
parent 0c2a48ef63
commit fa14261599

View File

@@ -330,7 +330,7 @@ class DirMonitor(_PluginBase):
return
# 不是媒体文件不处理
if file_path.suffix not in settings.RMT_MEDIAEXT:
if file_path.suffix.casefold() not in map(str.casefold, settings.RMT_MEDIAEXT):
logger.debug(f"{event_path} 不是媒体文件")
return