feat(Apple Music): Add catalog API provider for streaming-only releases - #252
Open
dwei30 wants to merge 6 commits into
Open
feat(Apple Music): Add catalog API provider for streaming-only releases#252dwei30 wants to merge 6 commits into
dwei30 wants to merge 6 commits into
Conversation
Keep iTunes Search as the fallback when Apple Music credentials are unset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
music.apple.comalbums via the catalog API (/v1/catalog/{storefront}/albums/{id}), including streaming-only releases that the iTunes Search API returns with no tracks (and often no GTIN from artwork URLs).api.music.apple.com) whenHARMONY_APPLE_MUSIC_TOKENis set. For self-hosted instances, unofficial AMP (amp-api.music.apple.com) is available viaHARMONY_APPLE_MUSIC_AMP_TOKENorHARMONY_APPLE_MUSIC_SCRAPE=true.music.apple.comURLs.itunes.apple.comstays on iTunes. Without credentials, Harmony behaves as today.Auth (pick one; first match wins):
HARMONY_APPLE_MUSIC_TOKEN— official developer JWTHARMONY_APPLE_MUSIC_AMP_TOKEN— unofficial AMP JWTHARMONY_APPLE_MUSIC_SCRAPE— scrape a MusicKit JWT frommusic.apple.com(self-hosted)Needs testing with an official Apple Music API token as I don't have access to one.
.envCopy from
.env.example. You only need one of these; leave the others blank.Local / self-hosted without an Apple Developer key:
Sources