Apple Music fix

This commit is contained in:
2026-04-07 20:15:56 +02:00
parent fe3ed1e204
commit f55b7e478b
7 changed files with 145 additions and 51 deletions
@@ -222,7 +222,7 @@ struct AlbumDetailView: View {
}
HStack(spacing: 6) {
ProviderBadge(uri: album.uri, imageProvider: album.imageProvider)
ProviderBadge(uri: album.uri, metadata: album.metadata)
if let year = album.year {
Text(String(year))
@@ -403,7 +403,7 @@ struct AlbumDetailView: View {
// If this album came from a provider-specific URI (not the full library version),
// try to find the matching library album so we can offer a "Show complete album" link.
if let scheme = URL(string: album.uri)?.scheme, scheme != "library" {
if let scheme = album.uri.components(separatedBy: "://").first, scheme != "library" {
completeAlbum = service.libraryManager.albums.first {
$0.name.caseInsensitiveCompare(album.name) == .orderedSame
&& $0.uri.hasPrefix("library://")