后端目录树图标映射补充 webm/3gp/f4v 为视频图标,前后端扩展名列表保持一致

This commit is contained in:
x1ao4 2025-09-23 13:58:59 +08:00
parent 8f0b9f9455
commit 338418e595

View File

@ -1063,7 +1063,7 @@ def get_file_icon(file_name, is_dir=False):
lower_name = file_name.lower()
# 视频文件
if any(lower_name.endswith(ext) for ext in ['.mp4', '.mkv', '.avi', '.mov', '.rmvb', '.flv', '.wmv', '.m4v', '.ts']):
if any(lower_name.endswith(ext) for ext in ['.mp4', '.mkv', '.avi', '.mov', '.rmvb', '.flv', '.wmv', '.m4v', '.ts', '.webm', '.3gp', '.f4v']):
return "🎞️"
# 图片文件