fix(music): keep now playing state current

close #1600
This commit is contained in:
edde746
2026-07-17 16:30:10 +02:00
parent 5b90c4bca0
commit 70cd7e8c67
18 changed files with 741 additions and 67 deletions
+4
View File
@@ -526,6 +526,10 @@ sealed class MediaItem with _$MediaItem {
_ => null,
};
/// Release year for music items. Track mappers normalize the containing
/// album's year into [year] when the backend exposes it as parent metadata.
int? get albumYear => kind == MediaKind.track || kind == MediaKind.album ? year : null;
/// Album-artist name for music items: a track's grandparent, an album's
/// parent.
String? get albumArtistTitle => switch (kind) {