Skip to content

fix(scanner): catalog .webm, .mov, .m2ts and other common video files - #1809

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/scanner-video-extensions
Oct 3, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/scanner-video-extensions

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1790
Related issue: #1252
Validation tasks: changes #1252 C1; changes #1252 C3; changes #1252 C4; changes #1252 C6; changes #1252 C8; changes #1252 C9

The library scanner accepted only .mkv, .mp4, .avi, .m4v, .ts and .wmv. A .webm, .mov, .m2ts, .mpg or similar episode was silently never cataloged, leaving a gap in the season with no log or admin warning, on every client including Jellyfin-compatible ones.

The scanner now catalogs .webm, .mov, .3gp, .3g2, .f4v, .divx, .m2ts, .mts, .mpg, .mpeg, .asf, .flv, .ogv and .ogm as well, and every "is this a video file" check reads from one list.

Approach

The list lives in internal/scanner/video_extensions.go; the library walk, single-file scans, extras detection and scantrigger (used by the library monitor and autoscan) all go through SupportsVideoFile. Some formats stay excluded on purpose and are logged at debug level with a reason: .vob (DVD titles split into parts next to menus), .iso, .rm/.rmvb, and .m2ts files inside a BDMV/STREAM disc folder, which would otherwise turn one Blu-ray rip into dozens of clip items. .m2ts/.mts record container m2ts (Jellyfin's name), so they only direct play to clients that claim it and are remuxed for the rest. The MIME table gains the new types, and the three hand-kept content-type lists now come from MediaMIMETypes(), which adds response media types to the OpenAPI document (additive; the contract check reports no breaking changes).

Merge order with #1810

This PR and #1810 (#1791, unreadable files) both regenerate the v2 contract, which changes contract_digest in contracts/api/v2/fixtures/get_system_info_ok.json. Each merges cleanly into main on its own; the second one to land conflicts only in that fixture. Suggested order: this PR first, then #1810, which I'll rebase once this one is merged. To resolve by hand, take either side of the fixture and run make apiv2-openapi apiv2-fixtures apiv2-web-types; make verify-apiv2-openapi verify-apiv2-fixtures verify-apiv2-web-types then pass.

Validation

  • verify-apiv2-contract first failed on two approvals in contracts/api/v2/breaking-approvals.json that feat(invitations): let admins create invitation links without email #1788 left behind for its own change. This PR empties the file, as feat(watchsync): sync dropped shows with Trakt and Simkl #1547 did; fix(playback): mark unreadable files and stop blaming the scan #1810 makes the identical edit, so it adds no conflict. The check passes.
  • Scanner, scantrigger, librarymonitor and proxy tests pass, with new tests for the extension list, the disc-folder exclusion, container mapping and MIME types; ffprobe's format_name was checked on a generated sample of each new extension.
  • Contract checks pass: verify-apiv2-openapi, verify-apiv2-fixtures, verify-apiv2-web-types, verify-apiv2-contract, verify-route-inventory.
  • Manual, Docker build of these fixes: a VP9/Opus .webm episode appeared in its season after a rescan and direct-played in the web app.
  • The full gate from CONTRIBUTING.md ran on a branch combining all nine Series — Web #1252 fixes: every step passes except make test-go. Its failures also occur on unmodified main on this macOS host (hardware-acceleration probe tests whose fake ffmpeg is killed, and TestAdminResourceCapabilitiesAndScope); three jellycompat transcode-session tests that failed once under full-suite load pass in isolation on both. Linux CI is the authority for those.

Risks

Existing libraries gain items on their next scan for any files with the new extensions; that is the fix, but it can arrive as a burst. .webm is still recorded as container mkv, so a browser that claims webm but not mkv remuxes it rather than direct-playing. Playback was tested end to end only for .webm. The client repos need make apiv2-fixtures-sync, and the user manual's supported-formats list needs the new extensions and the excluded disc formats.

silo-android claims m2ts/mts, but Media3 1.11 only reads 188-byte transport-stream packets, so once this merges Android would be offered .m2ts for direct play, fail to start, and recover only through a remux; its offline downloads of those files would fail. Apple's FFmpeg-based player reads them. The Android claim should be dropped before or with this PR: Silo-Server/silo-android#452 does that (verified on an emulator; tracked in Silo-Server/silo-android#449).

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (running in T3 Code)
  • Tool(s): Claude Code (Bash, Read, Edit, Write, sub-agents, browser automation through the T3 Code preview), GitHub CLI, Docker, FFmpeg
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: An independent Claude Code review agent (claude-opus-5-5) checked the diff against main: case-insensitive matching on every path, that all callers use the one list, that no previously cataloged file is dropped, and the direct-play effect of the new container mapping. No findings.

Note

Catalog .webm, .mov, .m2ts and other common video extensions in scanner

  • Adds a centralized video-extension set in video_extensions.go with a path-aware SupportsVideoFile that also rejects files under BDMV/STREAM and VOB, ISO, RM, and RMVB paths with a reason
  • Adds a shared extension-to-MIME registry in directplay.go; MimeFromExtension now resolves through it, and MediaMIMETypes returns a sorted, duplicate-free list used by the direct-download, playback, and proxy route declarations
  • Distinguishes .m2ts/.mts files in containerForFile by reporting the BDAV container instead of MPEG-TS
  • Single-file and walk scans now log or error with a reason on recognized-but-unsupported video paths instead of silently discarding them
  • Behavioral Change: the API contract and generated TypeScript schema advertise the new video MIME types (video/3gpp, video/3gpp2, video/mpeg, video/ogg, video/x-ms-asf); the eight prior approvals in breaking-approvals.json are cleared

Macroscope summarized f177832.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 82ddc7d9-9b49-4581-b836-9f23ef0091c2
📥 Commits

Reviewing files that changed from the base of the PR and between 7ed6696 and f177832.

📒 Files selected for processing (4)
  • contracts/api/v2/breaking-approvals.json
  • contracts/api/v2/fixtures/get_system_info_ok.json
  • contracts/api/v2/openapi.json
  • web/src/api/v2/schema.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The scanner now recognizes additional video formats and checks full paths during file collection. Playback MIME mappings, response media types, API schemas, and MPEG-TS container detection also change.

Changes

Video format support

Layer / File(s) Summary
Video and MIME catalogs
internal/scanner/video_extensions.go, internal/scanner/video_extensions_test.go, internal/playback/directplay.go, internal/playback/directplay_test.go
The scanner adds video extension classification and skip reasons for selected formats and disc-stream paths. Playback adds corresponding MIME mappings and returns the distinct MIME types in sorted order. Tests cover the mappings and path cases.
Scanner admission and container detection
internal/scanner/scanner.go, internal/scanner/extras.go, internal/scanner/scanner_test.go, internal/scanner/probe.go, internal/scanner/probe_container_test.go
Scanner traversal checks full paths and logs reasons when it skips unsupported video files. ScanFile returns a specific skip reason when available. Container conversion identifies .m2ts and .mts files as BDAV when FFprobe reports MPEG-TS.
Playback responses and API contracts
internal/apiv2/direct_download.go, internal/apiv2/playback_delivery.go, internal/proxy/direct_protocol.go, contracts/api/v2/openapi.json, web/src/api/v2/schema.ts, contracts/api/v2/fixtures/get_system_info_ok.json, contracts/api/v2/breaking-approvals.json
Playback response media types use the shared MIME catalog. OpenAPI and web schemas add binary definitions for video/3gpp, video/3gpp2, video/mpeg, video/ogg, and video/x-ms-asf. The system-info fixture digest changes, and the breaking-approvals array is emptied.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: quick104

Merge Risk: ⚪ Minimal · up to f1778

The PR expands recognized video formats and advertised playback and download media types. No concrete regression or contract-gate failure is established, though the exact gate classification of added media types remains unverified.

Architecture Summary

Architecture risk: 🔵 Low · up to f1778

The change affects 3 systems.

Changed systems: internal, contracts, web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — internal (service) was modified; 12 changed files map to changed impact.
  • observed — contracts (api) was modified; 3 changed files map to changed impact.
  • observed — web (api) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in internal/apiv2/direct_download.go: GET response content types now come from playback.MediaMIMETypes() rather than a fixed extension list mapped through MimeFromExtension.
  • observed — Modified behavior in internal/apiv2/playback_delivery.go: The media route replaces its fixed video/audio MIME type list with playback.MediaMIMETypes(), then appends application/octet-stream and multipart/byteranges.
  • observed — Modified behavior in internal/playback/directplay.go: Adds the maps and slices imports used to build and enumerate the MIME mapping.
  • observed — Modified behavior in internal/playback/directplay.go: Adds a fallback MIME constant, video MIME constants, and an extension-to-MIME table covering the scanner’s media extensions. The helper inverts MIME-to-extension groups into a lookup map by splitting each group on whitespace.
🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 61.54% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 12 files. (4 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding support for cataloging common video files in the scanner.
Description check ✅ Passed The description explains the scanner changes, supported and excluded formats, implementation, and validation. It is directly related to the changeset.
Linked Issues check ✅ Passed Issue #1790 requires common video files to enter the catalog and requires deliberate exclusions to be reported. The PR centralizes extension checks in SupportsVideoFile, adds the reported formats, a…
Out of Scope Changes check ✅ Passed The MIME registry and generated OpenAPI and TypeScript updates support the added video formats. The breaking-approvals.json change removes stale approvals for unrelated admin-plugin operations. The …
Full details: Docstring Coverage

Explanation

Docstring coverage is 61.54% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 12 files. (4 skipped: 3 unsupported, 1 too large.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-kody

silo-kody Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Comment thread internal/scanner/probe.go
return containerBDAV
}
}
return container

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

Container misclassification in internal/scanner/probe.go assigns newly admitted WebM files Container="mkv" because containerForFile only refines MPEG-TS, causing PlanPlaybackV3 to reject original playback for clients advertising "webm" but not "mkv", including the web client on Firefox. Refine the Matroska/WebM result to "webm" for .webm files and update the container test to prevent unnecessary adaptation or playback failure when no adaptation executor is available.

Prompt for LLM

File internal/scanner/probe.go:

Line 771:

Container misclassification in internal/scanner/probe.go assigns newly admitted WebM files Container="mkv" because containerForFile only refines MPEG-TS, causing PlanPlaybackV3 to reject original playback for clients advertising "webm" but not "mkv", including the web client on Firefox. Refine the Matroska/WebM result to "webm" for .webm files and update the container test to prevent unnecessary adaptation or playback failure when no adaptation executor is available.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this PR. With .webm recorded as mkv, a client that claims webm but not mkv (Firefox) gets a codec-copy remux, so playback still works; nothing fails because of it. Recording webm is worth doing, but it needs two safeguards first: only label a file webm when its codecs fit WebM (VP8/VP9/AV1 with Opus/Vorbis), since a mislabeled .webm with H.264/AAC would be offered to Firefox for direct play and fail, and a Firefox check that a large .webm starts without downloading the whole file (the reason the web client drops mkv there). Apple, Android and the web already claim webm, so no client loses direct play either way. I'll track it as a separate change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed—this belongs in a separate follow-up, not as a blocker for this PR. My original suggestion overstated the impact: the existing codec-copy remux path preserves playback for Firefox; the issue is unnecessary adaptation, not a demonstrated playback failure.

The follow-up should require both safeguards:

  • Validate WebM-compatible codecs before recording webm; the extension alone is insufficient.
  • Verify that Firefox starts playback of a large WebM file without downloading the entire file first.

I wouldn’t apply the extension-only refinement proposed in my original comment. No changes made.

@macroscopeapp

macroscopeapp Bot commented Oct 2, 2026

Copy link
Copy Markdown

#1252 C6 is still Not run in the task Results table, so unblocks overstates its recorded status. This PR changes mixed-format file discovery, but C6 also covers corrupt/zero-byte playback; #1791 remains outside this PR and is tracked by #1810. Please describe the changed coverage without claiming the full case is ready to re-test until both paths are addressed.

Suggested fix (PR-body line; no code diff): Validation tasks: changes #1252 C6

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@silo-kody

silo-kody Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Comment thread internal/scanner/probe.go
Comment on lines +764 to +765
container := detectContainer(formatName)
if container == containerMPEGTS {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

Container misclassification in internal/scanner/probe.go labels newly cataloged .webm files as "mkv", causing PlanPlaybackV3 to reject original playback and require unnecessary adaptation for clients advertising "webm" but not "mkv", including Firefox. Refine detectContainer(formatName)'s Matroska result to "webm" for .webm filenames using a case-insensitive extension check, and update TestConvertProbeDataContainer's WebM expectation accordingly.

Prompt for LLM

File internal/scanner/probe.go:

Line 764 to 765:

Container misclassification in internal/scanner/probe.go labels newly cataloged .webm files as "mkv", causing PlanPlaybackV3 to reject original playback and require unnecessary adaptation for clients advertising "webm" but not "mkv", including Firefox. Refine detectContainer(formatName)'s Matroska result to "webm" for .webm filenames using a case-insensitive extension check, and update TestConvertProbeDataContainer's WebM expectation accordingly.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same finding as the earlier thread (#1809 (comment)): recording .webm as mkv costs Firefox a codec-copy remux, not playback, and labelling it webm safely needs a codec check and a Firefox range-request check first. Leaving it for a separate change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed—this duplicates the earlier finding and is an unnecessary codec-copy remux, not a playback failure. My extension-only recommendation was incomplete: reporting webm safely also needs codec validation and Firefox range-request testing.

Leaving this out of #1809 and addressing it in a separate change makes sense.

@macroscopeapp

macroscopeapp Bot commented Oct 2, 2026

Copy link
Copy Markdown

Newly admitted video files change the series inventory used by #1252 C1, C4, C8, and C9; the new WebM/BDAV playback paths also change C3. The PR should call out that this intentionally changes the tested data, and these cases need re-validation after merge. The rehearsal with open PRs is not an RC result; keep C4 cross-device progress blocked pending #1249, and note that HDR issue #704 remains outside C3.

Suggested fix (no diff): Re-run C1, C3, C4's watched/roll-up checks, C8, and C9 on the merged RC and record the exact build in #1252.

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@Rhainland

Copy link
Copy Markdown
Contributor Author

Updated the line to changes #1252 C1; changes #1252 C3; changes #1252 C4; changes #1252 C6; changes #1252 C8; changes #1252 C9. The newly cataloged files change the series inventory those cases run against, so they need a re-run on the merged RC. C4 cross-device progress stays blocked on #1249, and HDR (#704) is unchanged by this PR.

Rhainland and others added 2 commits October 3, 2026 16:02
The video scanner only accepted .mkv, .mp4, .avi, .m4v, .ts and .wmv.
Every other video file was skipped without a log line, so a .webm
episode left a silent gap in its season.

The scanner now catalogs these extensions:

- .mkv, .webm (Matroska)
- .mp4, .m4v, .mov, .3gp, .3g2, .f4v (MP4 family)
- .avi, .divx (AVI)
- .ts, .m2ts, .mts (MPEG-TS)
- .mpg, .mpeg (MPEG program stream)
- .wmv, .asf (ASF)
- .flv
- .ogv, .ogm (Ogg)

ffprobe identifies all of them, and the planner already handles them
through direct play, remux or transcode. These stay excluded on
purpose:

- .vob: DVD VIDEO_TS folders split a title into 1 GB parts next to
  menu VOBs, so cataloging VOBs one by one makes an item per part
  and per menu.
- .iso: disc images need a mount, not a probe.
- .rm, .rmvb: RealMedia seeks poorly and needs a full transcode on
  every client.
- Clips directly inside BDMV/STREAM: a Blu-ray or AVCHD disc folder
  splits its feature into many .m2ts clips that only the disc
  playlists tie together. Disc folders stay uncataloged, as they were
  before .m2ts was accepted.

A video walk logs these skips at debug level with the reason. A
single-file scan rejects them with the same reason.

The list now lives in internal/scanner/video_extensions.go, and every
"is this a video file" check goes through SupportsVideoFile: the
library walk, ScanFile, the extras title-folder check, and scantrigger
(which the library monitor and autoscan use). The walk passes the full
path, because the disc-folder check needs the parent directories.

Playback side:

- ffprobe reports BDAV streams (.m2ts/.mts, 192-byte packets) as
  "mpegts", the same as .ts. These files now record the container as
  "m2ts", as Jellyfin does, so they direct play only to clients that
  claim m2ts. Other clients get a remux. Other new extensions map to
  existing container names (mp4, mkv, avi, ts, flv, ogg, wmv) or to
  ffprobe's own name ("mpeg").
- MimeFromExtension gains types for every new extension (video/mpeg,
  video/ogg, video/3gpp, video/3gpp2, video/x-ms-asf, and video/mp2t
  for .m2ts/.mts).
- The three response content-type lists for original media bytes now
  come from playback.MediaMIMETypes() instead of hand-kept copies.
  OpenAPI regenerated: response media types were added, nothing was
  removed.

Closes Silo-Server#1790
The sign_in_mode approvals belong to the change Silo-Server#1828 merged, so the
contract check reports them as stale against the new base.
@Quick104
Quick104 force-pushed the fix/scanner-video-extensions branch from 7ed6696 to f177832 Compare October 3, 2026 20:05
@silo-kody

silo-kody Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Comment thread internal/scanner/probe.go
Comment on lines +764 to +765
container := detectContainer(formatName)
if container == containerMPEGTS {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

Container misclassification in internal/scanner/probe.go labels newly cataloged .webm files as "mkv", causing PlanPlaybackV3 to reject original playback for clients advertising "webm" but not "mkv", including the web client's Firefox capability probe. Refine the Matroska result to "webm" for case-insensitive .webm extensions in containerForFile and update TestConvertProbeDataContainer's WebM expectation to prevent unnecessary adaptation.

Prompt for LLM

File internal/scanner/probe.go:

Line 764 to 765:

Container misclassification in internal/scanner/probe.go labels newly cataloged .webm files as "mkv", causing PlanPlaybackV3 to reject original playback for clients advertising "webm" but not "mkv", including the web client's Firefox capability probe. Refine the Matroska result to "webm" for case-insensitive .webm extensions in containerForFile and update TestConvertProbeDataContainer's WebM expectation to prevent unnecessary adaptation.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

@Quick104
Quick104 merged commit 063a688 into Silo-Server:main Oct 3, 2026
16 checks passed
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 4, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 4, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 4, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 5, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 10, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 11, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 18, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 19, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Oct 22, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Nov 3, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Nov 4, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tobechukwu-Njoku added a commit to Tobechukwu-Njoku/silo-server that referenced this pull request Nov 23, 2026
Since Silo-Server#1809 the scanner skips DVD VOBs, disc images, RealMedia files and
Blu-ray disc streams, but it only logs them at debug level, so an admin
sees a title that never appeared and no reason.

The walk now collects those files with their reason. Each scan keeps a
per-library list of them in unsupported_media_files, one row per directory
and reason with a file count and the files' names (up to 100), the way
skipped roots are kept: a library scan replaces the library's rows and a
subtree scan the rows under its subtree. Rows the scanner protects in the
catalog (under an unreachable or suspect-empty root, or a path the walk
could not read) stay, and so do rows another scan refreshed after this
one started, since a subtree scan can run alongside a library scan.

GET /api/v2/libraries/unsupported-files pages the list, and the Libraries
page shows it as Files Not Cataloged with its count visible while
collapsed; each folder opens, by mouse or keyboard, to list its files.
The scan result and the "discovered files" log line also report the
count at the default level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Library scan skips .webm, .mov, .m2ts and other common video files

2 participants