Repository navigation
fix(scanner): catalog .webm, .mov, .m2ts and other common video files - #1809
Conversation
|
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
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe 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. ChangesVideo format support
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The change affects 3 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❓ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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)
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. Comment |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| return containerBDAV | ||
| } | ||
| } | ||
| return container |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
Suggested fix (PR-body line; no code diff): Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
bb2132e to
7ed6696
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| container := detectContainer(formatName) | ||
| if container == containerMPEGTS { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
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 |
|
Updated the line to |
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.
7ed6696 to
f177832
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| container := detectContainer(formatName) | ||
| if container == containerMPEGTS { |
There was a problem hiding this comment.
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.
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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,.tsand.wmv. A.webm,.mov,.m2ts,.mpgor 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,.ogvand.ogmas 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 andscantrigger(used by the library monitor and autoscan) all go throughSupportsVideoFile. 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.m2tsfiles inside aBDMV/STREAMdisc folder, which would otherwise turn one Blu-ray rip into dozens of clip items..m2ts/.mtsrecord containerm2ts(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 fromMediaMIMETypes(), 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_digestincontracts/api/v2/fixtures/get_system_info_ok.json. Each merges cleanly intomainon 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 runmake apiv2-openapi apiv2-fixtures apiv2-web-types;make verify-apiv2-openapi verify-apiv2-fixtures verify-apiv2-web-typesthen pass.Validation
verify-apiv2-contractfirst failed on two approvals incontracts/api/v2/breaking-approvals.jsonthat 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.format_namewas checked on a generated sample of each new extension.verify-apiv2-openapi,verify-apiv2-fixtures,verify-apiv2-web-types,verify-apiv2-contract,verify-route-inventory..webmepisode appeared in its season after a rescan and direct-played in the web app.make test-go. Its failures also occur on unmodifiedmainon this macOS host (hardware-acceleration probe tests whose fake ffmpeg is killed, andTestAdminResourceCapabilitiesAndScope); threejellycompattranscode-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.
.webmis still recorded as containermkv, so a browser that claimswebmbut notmkvremuxes it rather than direct-playing. Playback was tested end to end only for.webm. The client repos needmake 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.m2tsfor 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
AI Disclosure
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
SupportsVideoFilethat also rejects files underBDMV/STREAMand VOB, ISO, RM, and RMVB paths with a reasonMimeFromExtensionnow resolves through it, andMediaMIMETypesreturns a sorted, duplicate-free list used by the direct-download, playback, and proxy route declarations.m2ts/.mtsfiles incontainerForFileby reporting the BDAV container instead of MPEG-TSvideo/3gpp,video/3gpp2,video/mpeg,video/ogg,video/x-ms-asf); the eight prior approvals in breaking-approvals.json are clearedMacroscope summarized f177832.