Post

Replies

Boosts

Views

Activity

Reply to Request content in a specific locale?
Hi Joe, Thank you for taking the time to respond. Bundle.main.preferredLocalizations = ["en"] Bundle.main.localizations = ["de", "es", "nl", "pt-PT", "en", "Base"] Bundle.main.developmentLocalization = Optional("en") MusicDataRequest.currentCountryCode = nl This is what I get back from the code snippet above. I used to support more languages but I've removed them. Looking at this response I noticed they were still considered to be active so I investigated it and noticed I still had some localized visuals. After removing them it seems to be fixed :) Maybe it's an idea that MusicKit looks at the Bundle.main.preferredLocalizations instead of the Bundle.main.localizations? Anyway, thank you so much for this pointer :)
Topic: Media Technologies SubTopic: General Tags:
May ’22
Reply to Any way to check if song is in Library with MusicKit? ?relate=library not working for me
Hi Joe, Thanks for responding! I tripple checked and appleMusic is indeed the identifier of a Song object so not sure what's happening there. As in regards to your second request, here is how I'm currently checking in the MPMediaLibrary func checkInLocalLib(with id: String) {         let query = MPMediaQuery.songs()         let allSongs = query.items! as [MPMediaItem]         if allSongs.isEmpty == false {             let matchedSong = allSongs.filter { $0.playbackStoreID == id }             if matchedSong.isEmpty {                 currentSongInLibrary = false             } else {                 currentSongInLibrary = true             }         }     }
Topic: Media Technologies SubTopic: General Tags:
Dec ’21
Reply to Request content in a specific locale?
Hi Joe, Thank you for taking the time to respond. Bundle.main.preferredLocalizations = ["en"] Bundle.main.localizations = ["de", "es", "nl", "pt-PT", "en", "Base"] Bundle.main.developmentLocalization = Optional("en") MusicDataRequest.currentCountryCode = nl This is what I get back from the code snippet above. I used to support more languages but I've removed them. Looking at this response I noticed they were still considered to be active so I investigated it and noticed I still had some localized visuals. After removing them it seems to be fixed :) Maybe it's an idea that MusicKit looks at the Bundle.main.preferredLocalizations instead of the Bundle.main.localizations? Anyway, thank you so much for this pointer :)
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Any way to check if song is in Library with MusicKit? ?relate=library not working for me
Hi Joe, Thanks for responding! I tripple checked and appleMusic is indeed the identifier of a Song object so not sure what's happening there. As in regards to your second request, here is how I'm currently checking in the MPMediaLibrary func checkInLocalLib(with id: String) {         let query = MPMediaQuery.songs()         let allSongs = query.items! as [MPMediaItem]         if allSongs.isEmpty == false {             let matchedSong = allSongs.filter { $0.playbackStoreID == id }             if matchedSong.isEmpty {                 currentSongInLibrary = false             } else {                 currentSongInLibrary = true             }         }     }
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’21