unarr/internal/library/mediainfo
Deivid Soto f0ac905fdb feat(library): detect corrupt/incomplete files during scan
ffprobe already runs on every scanned file; now we capture its stderr and
assess integrity from it. assessIntegrity flags a file "damaged" on the
markers that mean the container/bitstream is unusable: invalid_data,
ebml_corrupt, moov_missing, bitstream_corrupt, plus no_duration (a video
stream with non-positive duration = a truncated/incomplete download).

The verdict rides on MediaInfo.Integrity (IntegrityInfo{Damaged,Reason}),
maps onto LibrarySyncItem.{Integrity,IntegrityReason}, and syncs to the web
so a damaged file can be surfaced at rest instead of only blowing up at
playback.

Bumps the scan cache version (1 → 2) so existing entries re-probe once, and
the scanner re-probes any cached entry that has no integrity verdict yet.
2026-06-02 19:42:00 +02:00
..
ffmpeg.go feat(stream)!: retire WebRTC, HLS-only, bump 0.9.4 2026-05-26 18:04:35 +02:00
ffmpeg_download.go feat(mediainfo): ResolveFFmpeg + DownloadFFmpeg mirroring ffprobe pattern 2026-05-06 09:49:32 +02:00
ffmpeg_test.go feat(mediainfo): ResolveFFmpeg + DownloadFFmpeg mirroring ffprobe pattern 2026-05-06 09:49:32 +02:00
ffprobe.go feat(library): detect corrupt/incomplete files during scan 2026-06-02 19:42:00 +02:00
ffprobe_download.go fix(library): use native arm64 ffprobe on Apple Silicon (osx-arm-64) 2026-04-09 09:26:10 +02:00
ffprobe_download_test.go test(mediainfo): add ffprobe download unit tests 2026-04-06 10:16:27 +02:00
ffprobe_test.go feat(library): detect corrupt/incomplete files during scan 2026-06-02 19:42:00 +02:00
ioprio_linux.go perf(stream): run the subtitle/thumbnail prewarm at idle I/O priority 2026-06-02 11:51:26 +02:00
ioprio_other.go perf(stream): run the subtitle/thumbnail prewarm at idle I/O priority 2026-06-02 11:51:26 +02:00
lang.go feat: add migrate command, media server detection, and debrid auto-config 2026-03-29 16:54:32 +02:00
lang_test.go feat: add migrate command, media server detection, and debrid auto-config 2026-03-29 16:54:32 +02:00
sidecar.go fix(stream): /critico review fixes for the sidecar cache 2026-06-02 13:46:07 +02:00
sidecar_test.go fix(stream): /critico review fixes for the sidecar cache 2026-06-02 13:46:07 +02:00
types.go feat(library): detect corrupt/incomplete files during scan 2026-06-02 19:42:00 +02:00