feat(file-info): detail every version, file and stream the server reports
The sheet collapsed an item to `Media.first` / `MediaSources.first` and
rendered a fixed set of rows, so split files, extra versions, per-track
properties, HDR classification and Dolby Vision were all invisible.
Model the payload the way both servers shape it — versions own parts,
parts own streams — and project every property either backend populates
onto `MediaStreamDetails`. The field set comes from sweeping both test
servers in full through the clients' own request shapes (Plex 6842
Media / 6842 Part / 39864 Stream entries, Jellyfin 6349 sources / 37763
streams / 61224 attachments), so file presence, Dolby Vision layers,
dynamic range, sample rate, spatial audio, sidecar provenance, embedded
attachments, rotation and the lyric stream type all survive. A coverage
test fails when a server key is neither carried, folded into a sibling,
nor excluded with a reason.
File Info also stopped trusting the shared `/library/metadata/{id}`
cache row: `getPlaybackExtras` writes it without `includeStreams` /
`checkFiles`, so the sheet could render with no stream table at all.
Detect that shape and refetch once under the request context captured
before the cache read, so the outgoing token and the cache namespace
stay on one profile.
Rework the layout to match: a summary chip row, then flat tonal cards
with a two-column field grid that collapses to one column on narrow
viewports, per-stream cards with flag chips, and a copyable monospace
path row. The card fill is a tonal step off the text colour rather than
the `bg` token, which is one shade from the sheet surface on OLED.
This commit is contained in:
@@ -507,8 +507,8 @@ class _Translations$fileInfo$da extends Translations$fileInfo$en {
|
||||
@override String get title => 'Filinfo';
|
||||
@override String get video => 'Video';
|
||||
@override String get audio => 'Lyd';
|
||||
@override String get subtitles => 'Undertekster';
|
||||
@override String get file => 'Fil';
|
||||
@override String get advanced => 'Avanceret';
|
||||
@override String get codec => 'Codec';
|
||||
@override String get resolution => 'Opløsning';
|
||||
@override String get bitrate => 'Bitrate';
|
||||
@@ -521,7 +521,6 @@ class _Translations$fileInfo$da extends Translations$fileInfo$en {
|
||||
@override String get colorPrimaries => 'Farveprimærer';
|
||||
@override String get chromaSubsampling => 'Chroma-subsampling';
|
||||
@override String get channels => 'Kanaler';
|
||||
@override String get subtitles => 'Undertekster';
|
||||
@override String get overallBitrate => 'Samlet bitrate';
|
||||
@override String get path => 'Sti';
|
||||
@override String get size => 'Størrelse';
|
||||
@@ -2560,8 +2559,8 @@ extension on TranslationsDa {
|
||||
'fileInfo.title' => 'Filinfo',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Lyd',
|
||||
'fileInfo.subtitles' => 'Undertekster',
|
||||
'fileInfo.file' => 'Fil',
|
||||
'fileInfo.advanced' => 'Avanceret',
|
||||
'fileInfo.codec' => 'Codec',
|
||||
'fileInfo.resolution' => 'Opløsning',
|
||||
'fileInfo.bitrate' => 'Bitrate',
|
||||
@@ -2574,7 +2573,6 @@ extension on TranslationsDa {
|
||||
'fileInfo.colorPrimaries' => 'Farveprimærer',
|
||||
'fileInfo.chromaSubsampling' => 'Chroma-subsampling',
|
||||
'fileInfo.channels' => 'Kanaler',
|
||||
'fileInfo.subtitles' => 'Undertekster',
|
||||
'fileInfo.overallBitrate' => 'Samlet bitrate',
|
||||
'fileInfo.path' => 'Sti',
|
||||
'fileInfo.size' => 'Størrelse',
|
||||
@@ -2710,9 +2708,9 @@ extension on TranslationsDa {
|
||||
'videoControls.language' => 'Sprog',
|
||||
'videoControls.noSubtitlesFound' => 'Ingen undertekster fundet',
|
||||
'videoControls.subtitleDownloaded' => 'Undertekst downloadet',
|
||||
'videoControls.subtitleDownloadedNotApplied' => 'Underteksten blev downloadet, men kunne ikke vælges',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'videoControls.subtitleDownloadedNotApplied' => 'Underteksten blev downloadet, men kunne ikke vælges',
|
||||
'videoControls.subtitleDownloadFailed' => 'Kunne ikke downloade undertekst',
|
||||
'videoControls.searchLanguages' => 'Søg sprog...',
|
||||
'messages.markedAsWatched' => 'Markeret som set',
|
||||
@@ -3224,9 +3222,9 @@ extension on TranslationsDa {
|
||||
'watchTogether.failedToJoin' => 'Kunne ikke deltage i session',
|
||||
'watchTogether.sessionCodeCopied' => 'Sessionskode kopieret til udklipsholder',
|
||||
'watchTogether.relayUnreachable' => 'Relayserveren kan ikke nås. Blokering hos internetudbyderen kan forhindre Se sammen.',
|
||||
'watchTogether.reconnectingToHost' => 'Genopretter forbindelse til vært...',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'watchTogether.reconnectingToHost' => 'Genopretter forbindelse til vært...',
|
||||
'watchTogether.currentPlayback' => 'Nuværende afspilning',
|
||||
'watchTogether.joinCurrentPlayback' => 'Deltag i nuværende afspilning',
|
||||
'watchTogether.joinCurrentPlaybackDescription' => 'Hop tilbage til det værten ser nu',
|
||||
|
||||
Reference in New Issue
Block a user