Episodes are never grouped by version, so the resolver that does it is unreachable #215
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?
ListCollection::TvShowsis passed nowhere.crates/ephyra-app/src/scan/tree/shows.rsnever callsresolve_list, soepisodes_grouped_by_version(crates/ephyra-naming/src/video/list.rs:193) is dead against the app — the code is ported, tested inephyra-naming, and unreachable from a scan.Upstream runs
GetEpisodesGroupedByVersionforCollectionType.tvshows, so two files of one episode (S01E01.mkvandS01E01 - 1080p.mkv) are one row with an alternate version upstream, and two episode rows here.Reach
The naming half exists and passes its own corpus; what is missing is the caller.
movies.rsshows the shape — it callsresolve_listwith aCollectionand reads the group back — so this is wiring an existing resolver into the series walk rather than porting anything new.Note the row this would produce is an alternate version, so it lands on the same missing join as the films do.
Verifying
cargo xtask reference gen-library-kindsregisters notvshowslibrary today; themixedtree added for #208 has a series in it. Either gains two files of one episode cheaply.Found reviewing #207.
Fixed in
fe6b37c8, landed onmainat53ac9c6c.A season's files are read through
resolve_listwithListCollection::TvShows, soepisodes_grouped_by_versionis reachable from a scan. The answer key settles which file wins: ofShow S02E01.mkvandShow S02E01 - 1080p.mkv, upstream makes the one naming a resolution the primary and owns the plain one under it, withPrimaryVersionIdset and the presentation key shared. Ours now files the same, and the join #214 added serves them as one title with two sources.Two things the key settled along the way:
tests/scan.rs::an_extra_beside_an_episode_is_not_an_episodeasserted the opposite on a guess and is corrected.Trailerrow beside the episode, which joined the list of extras this port does not resolve.Not covered by the key: stacked episodes now produce part rows, and no case exercises them.