Open
Conversation
swizardlv
commented
Sep 28, 2025
- ✅ 正确识别带 @ 符号的文件名(如 4k2.com@sivr00441_1_8k.mp4)
- ✅ 智能识别不同格式的分片文件
- ✅ 覆盖已存在的同名目录,避免 IsADirectoryError 错误
1. ✅ 正确识别带 @ 符号的文件名(如 4k2.com@sivr00441_1_8k.mp4) 2. ✅ 智能识别不同格式的分片文件 3. ✅ 覆盖已存在的同名目录,避免 IsADirectoryError 错误
文件夹封面功能总结
1. 主要功能
- 自动生成小尺寸缩略图 folder.jpg
- 缩略图大小默认为 300x450,可在配置文件中调整
- 使用高质量 LANCZOS 重采样算法
- JPEG 格式,85% 质量,启用优化
2. Windows 特殊支持
- 自动生成 desktop.ini 文件
- 设置文件夹为系统文件夹,启用自定义图标
- 隐藏 desktop.ini 文件
- Windows 资源管理器会自动显示文件夹封面
3. 配置选项 (在 config.yml 中)
cover:
# 生成文件夹缩略图 (folder.jpg)
create_folder_thumbnail: true
# 文件夹缩略图的大小 (宽x高)
folder_thumbnail_size: [300, 450]
4. 使用方法
- 默认已启用
- 运行 python -m javsp 整理影片时会自动生成
- 每个影片文件夹都会有一个 folder.jpg 文件
- 在 Windows 资源管理器中查看文件夹时会显示封面图标
5. 兼容性
- ✅ Windows: 完整支持,自动显示文件夹图标
- ✅ macOS: 生成 folder.jpg,可手动设置为文件夹图标
- ✅ Linux: 生成 folder.jpg,文件管理器(如 Nautilus)可能会显示
如果你想禁用此功能,只需在配置文件中设置 create_folder_thumbnail: false 即可。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.