Conversation
Closed
问题:NAS(飞牛 fnOS 等)会在媒体目录内生成缩略图缓存目录(如 .@__thumb), 其中的缩略图内容是 JPEG 但文件名保留了原视频的 .mp4 扩展名。扫描器遍历 时不跳过隐藏目录、仅按扩展名过滤,导致这些缓存被当作剧集入库 —— ffprobe 探出 codec=mjpeg、按图片尺寸归一化为 100p/400p/720p,并被刮削误配出 完全无关的幽灵剧集。 修复: - 所有遍历路径(电影库 walkFn、collectEpisodes、混合库、剧集库目录收集、 isTVShowFolder、looksLikeSeriesFolder、collectMediaRoots)跳过隐藏目录 与 NAS 缓存目录,整棵子树 SkipDir(对齐 Jellyfin/Emby 标准行为) - 7 个入库点统一加静态图防御:ffprobe 视频流为 mjpeg/png 等图片编码且 时长近零(单帧特征)才拦截,不误杀正常时长的 Motion-JPEG 视频; 探测失败(codec 为空)不拦截,避免 ffprobe 不可用时清空媒体库 - 文件监听(fsnotify)忽略隐藏/缓存目录内的事件 - 补充回归测试覆盖 fnOS 缩略图场景、深层嵌套隐藏目录、Motion-JPEG 不误杀 - server-ci PR 路径过滤补齐 scanner.go/scanner_test.go/file_watcher.go, 避免相关修复的 PR 跳过 Go 测试与 Docker 构建冒烟
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.
No description provided.