The scan files no extras, so nothing copies an owner's ratings to them #250
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?
Left from #247. The tree drops extras (
extra_type.is_some()is filtered incrates/ephyra-app/src/scan/tree/movies.rsandshows.rs) and nothing writesExtraType, so trailers, featurettes and theme media are not rows at all. Upstream files them as owned items andBaseItem.RefreshMetadataForOwnedItem(BaseItem.cs~1658-1687) copies the owner's ratings, genres and studios to them when the extra set changed, an extra was renamed, or the refresh is full; otherwise only the dates.crates/ephyra-db/src/scan/owned.rsselects stacked parts only (ExtraType IS NULL). When the scan files extras, the copy needs that condition added, and the fixture needs a rated film with an extra to measure it — the reference snapshot's one owned row has an empty owner.Landed (on main up to the http extras commit), one review round. The scan files extras as upstream's
FindExtras/RefreshExtrasdo — trailers asTrailer, theme songs asAudio, the rest asVideo, owned, parentless, named and numbered as upstream names them — and hands them the owner's ratings, genres and studios when the extra set changed or on a full refresh, otherwise the dates.library_kindsno longer excludes extras, and a snapshot-backed test holds them to the upstream-written rows includingExtraType. The review's findings are fixed:SpecialFeatures,LocalTrailers, the theme routes, the two counts and the fourhas*filters answer from the rows; a parentless owned row (extra or stacked part) is refused with its owner's library, as upstream resolves it at read time while storing a NULLTopParentId; the sweep leaves extras of owner kinds the scan files none for. What remains is filed separately.