Apple Music fix
This commit is contained in:
@@ -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://")
|
||||
|
||||
Reference in New Issue
Block a user