fix: find rip output by suffix, not by pasting the reported disc name #9
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/disc-name-sanitised-in-filenames"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MakeMKV sanitises the disc name when it builds output filenames, so the name it reports is not the name it writes.
A Monty Python disc reported
MONTY PYTHON’S LIFE OF BRIAN(U+2019, bytese2 80 99) and wroteMONTY PYTHON'S LIFE OF BRIAN_t01.mkv(ASCII0x27).rip_disc.pypredicted the output path from the reported name, so it looked for a file that never existed. All four rips from that disc were reported FAILED with "0 read errors" while sitting complete on disk, every log sayingCopy complete. 1 titles saved.The failure mode is quiet in the worst way: the completion message passes, only the existence test fails, so it reads as "the output vanished" rather than "the checker looked in the wrong place."
Change
_tNN.mkvsuffix — MakeMKV's own, and immune to mangling of the leading name.Verification
--helpgate from AGENTS.md: passexists=False, new suffix match finds the real fileMakeMKV sanitises the disc name when it builds output filenames, so the name it reports is not always the name it writes. A Monty Python disc reported MONTY PYTHON’S LIFE OF BRIAN (U+2019, bytes e2 80 99) and wrote MONTY PYTHON'S LIFE OF BRIAN_t01.mkv (ASCII apostrophe, 0x27) rip_disc.py predicted the output path by pasting the reported name together with the title number, so it looked for a file that was never created. All four rips from that disc were reported FAILED with "0 read errors" while sitting complete on disk, every MakeMKV log saying "Copy complete. 1 titles saved." The failure is quiet in the worst way: the completion message is checked and passes, and only the existence test fails, so the output looks like it vanished rather than like the checker looked in the wrong place. Nothing was deleted only because there was nothing at the guessed path to delete. Locate the output by its "_tNN.mkv" suffix instead. The suffix is MakeMKV's own and survives any mangling of the leading name. Also record two entries in the README: this one, and that a title's container duration can far exceed its video. A menu asset on the same disc held 20 seconds of video over a five-minute audio bed and reported 300s against the scan's 20s, which is authoring, not a bad rip -- the playlist remains what settles identity.