Post

Replies

Boosts

Views

Activity

Comment on Get Songs from Apple Music API recently added
Hi @snuff4, I finally got back around to this and your struct does work, thanks! I do have to do the following to get the albums into a from I can work with of the playlist: let albums = items.compactMap{$0.relationships.catalog.compactMap{$0}}.flatMap{$0} This is probably because I'm too lazy and dumb on Swift. Frankly the whole reason I'm doing this is because of what I think is a bug in the iOS Music app, which I've asked the ever-helpful @JoeKun to check out here. And after going through this exercise, I realize that "recently added" isn't going to help, because what I want to do is check recently added for songs that do not exist in certain user library playlists. And since I can only get Albums, followed by subsequent API calls to get Tracks from said Albums, I can only know if there is an intersection of playlist tracks with the recently added album tracks, which lets me ask: "What are the tracks in recently added that are not in this particular playlist", but results in potentially all of the recently added album tracks that I don't care about. I wish Recently Added had an option for tracks, and I think I'm not alone with that sentiment.
Topic: Media Technologies SubTopic: General Tags:
May ’22
Comment on Adding tracks to User's Library Playlist
ignore this - note to self, don't post code in comments!
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on How do you do a POST to a user's playlist so as to add tracks?
Thanks @JoeKun. I replied there. I can't seem to remove posts, so this will probably have to stay...
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on Searching for a track with MusicKit Swift Beta
numbering in markdown not quite working here.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on iOS 15 App Stops immediately after launch screen when using ipa
Hi @KoheKangu, Thanks for taking the time to comment and for your advice.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Delete song from playlist using Music Kit JS (or the API)?
@JoeKun have there been any developments that now allow the deletion of tracks in a user's playlist (initiated by th user, of course)?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on Deep link to Apple Music library playlist from Swift (iOS) app
Thanks @JoeKun, for your follow up. While I don't quite know what "opaque" actually means, I think you've confirmed that the Apple Music app does not presently support what I'm trying to do. I shall follow your advice and file a ticket.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on Get listing of public playlists for any Apple Music user Swift iOS
Hi @s.hk, Thanks for your response. I'll open a ticket per your advice.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’21
Comment on Missing play parameters when trying to play with MusicKit - potential storefront issue
Thanks, @JoeKun! One thing that I found is that these issues seem to occur when making a catalog request based on an ISRC. While it would be nice to use ISRC, it seems more problematic than just using a search string, which seems to always return song that are playable.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on MusicCatalogSearchRequest does not find Albums that are found when using the Music app with the same search string
Thanks for the reply, @JoeKun. If things ever get fixed, it would be nice to know; otherwise, I'll keep trying with hope first and the workaround second.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Songs are not always added to Playlist when using Music iOS
Hi @JoeKun, Thanks for responding. I believe it should be FB9857866.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Get Songs from Apple Music API recently added
Hi @snuff4, I finally got back around to this and your struct does work, thanks! I do have to do the following to get the albums into a from I can work with of the playlist: let albums = items.compactMap{$0.relationships.catalog.compactMap{$0}}.flatMap{$0} This is probably because I'm too lazy and dumb on Swift. Frankly the whole reason I'm doing this is because of what I think is a bug in the iOS Music app, which I've asked the ever-helpful @JoeKun to check out here. And after going through this exercise, I realize that "recently added" isn't going to help, because what I want to do is check recently added for songs that do not exist in certain user library playlists. And since I can only get Albums, followed by subsequent API calls to get Tracks from said Albums, I can only know if there is an intersection of playlist tracks with the recently added album tracks, which lets me ask: "What are the tracks in recently added that are not in this particular playlist", but results in potentially all of the recently added album tracks that I don't care about. I wish Recently Added had an option for tracks, and I think I'm not alone with that sentiment.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on Songs are not always added to Playlist when using Music iOS
Hi @JoeKun, FYI: the issue is still there.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on MusicCatalogSearchRequest does not find Albums that are found when using the Music app with the same search string
Great news, @JoeKun. Thanks for the pro follow-up.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on How to develop for impending beta features while supporting older iOS versions
Thanks, @makabaka1880. That same pattern works for me in all but the case I've mentioned with .includeTopResults.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on How to develop for impending beta features while supporting older iOS versions
Thanks for the pro follow-up, @JoeKun! I'll await your update here.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22