A disc image's source is always named ISO, because no row carries which kind of disc it is #236
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
A disc image's source is always named
ISO, because nothing in this port works out which kind of disc it holds.Both sides
upstream/MediaBrowser.Controller/Entities/BaseItem.cs:1340-1372readsvideo.IsoTypeand appendsBlurayorDVDwhen it is known, falling back toISOonly when it is null.crates/ephyra-http/src/map/media.rs:1055-1070appendsISOfor everyIsorow. There is noIsoTypeanywhere: no column, no blob member, and no scan that determines one.What a client sees
A version dropdown naming a disc image reads
Film - ISOhere andFilm - Blurayupstream.The shape of the fix
Work out how upstream decides an
IsoTypeat all — it is set when the image is resolved, from what the image contains — and file it on the row, then let the name read it. The doc comment on the naming states upstream's null-case rule as though it were the whole rule; that should say we never hold the value until this is done.Found reviewing #229.
Closing this as decided rather than done: the gap is recorded as D53 and the misleading comment is fixed, landed on
mainat60dd4302. NoIsoTypeis filed.Why not file the value. Upstream's
BaseVideoResolver.SetIsoTypeis three steps: the path containsdvd, the path containsbluray, or open the image with a UDF reader and look forVIDEO_TSorBDMV. The first two are cheap and are not the detector — most disc images are named after the film.And
IsoTypeis not only a label. Upstream carries it intoMediaSourceInfo, and the encoder builds abluray:input from it. Filing a value from the path rules alone would identify a disc when the path happened to say so and leave every other image unidentified — moving the divergence out of a name a user reads and into what ffmpeg is told to open. Nothing in this port reads a filesystem out of a file, and no answer key can cover an.iso, because the generator cannot lay down a real UDF image.Reading the kind at naming time was rejected too: it would put a resolver's rule in the mapping layer and let the row a client sees disagree with the row a transcode reads.
So a source naming a disc image reads
ISOhere, and the comment above it now says that this port never holds the value, instead of quoting upstream's null case as though it were the whole rule. D53 names what would justify revisiting it.