Commit Graph
14 Commits
Author SHA1 Message Date
Esa Kataja b95369168c fix: harden OMDb/TVmaze fetchers and series fallback
TVmaze: drop trailing slash from base URL (was producing //shows/), send
season/number as plain ints (TVmaze rejects zero-padding), check HTTP
status before decoding so 404 bodies stop being decoded as episodes, and
fetch /shows/{id} separately for show name + IMDb mapping —
episodebynumber does not honor embed=show despite what the docs imply.

OMDb: check HTTP status, and include a body snippet when Response is
non-True with an empty Error field so rate-limit and HTML failure modes
are diagnosable.

Both: assert that the fields we actually depend on come back non-empty
after decode. Catches silent field rename/removal without making us
fragile to TVmaze adding new optional fields.

main.processFile: split the nometadata fallback by branch. Series uses
Collection (legitimate shows can have no IMDb mapping); movies keep the
IMDBID/Title check.
2026-05-16 19:57:01 +03:00
Esa Kataja 07f999a338 fix: correct interlace detection and reap idet child
The previous detector substring-matched "TFF"/"BFF" against idet's own
label text, so it returned true on every source, and `cmd.Start()` was
never paired with `Wait()`, leaving a zombie ffmpeg per file.

Run idet bounded with `-frames:v 400 -an -sn -f null -` so it completes,
use CombinedOutput so the child is reaped, and parse the "Multi frame
detection" summary line — interlaced only when TFF+BFF > Progressive.
2026-05-16 19:39:33 +03:00
Esa Kataja 4783d0e0d4 fix: restore metadata tags and sanitize output filenames 2026-04-04 19:39:17 +03:00
Esa Kataja 3f3eef5d1f add: keyint=10s svtav1 parameter 2026-04-04 19:34:55 +03:00
Esa Kataja 9d8cc17e69 fix: add -preset as separate FFmpeg argument 2026-04-04 19:27:00 +03:00
Esa Kataja 832e5568f5 fix: preserve stream language metadata using ffprobe and -map_metadata -1 2026-04-04 19:20:46 +03:00
Esa Kataja 31b5f03e09 fix: use ffprobe for SAR detection and calculate zscale width 2026-04-04 19:18:43 +03:00
Esa Kataja 4eeacfe551 fix: use consistent filenames for audio extraction 2026-04-04 19:00:30 +03:00
Esa Kataja bc58017414 fix: reorder FFmpeg args to fix input option error 2026-04-04 18:58:10 +03:00
Esa Kataja 935912e376 fix: improve FFmpeg output parsing for resolution detection 2026-04-04 18:08:49 +03:00
Esa Kataja 53adafbc40 add: add interlaced detection and bwdif deinterlacing 2026-04-04 18:08:25 +03:00
Esa Kataja 0f11c62c4d add: add encoder, mover, watcher, and logger packages 2026-04-04 18:07:37 +03:00
Esa Kataja 2b18f5b526 add: add metadata package for omdb and tvmaze 2026-04-04 18:07:36 +03:00
Esa Kataja 901ccc37b2 add: add types and config package 2026-04-04 18:07:26 +03:00