glomatico / gamdl

A Python CLI app for downloading Apple Music songs/music videos/posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If file has been imported using iTunes Match, possible to copy from local storage to gamdl download location

nexxai opened this issue · comments

I have a couple playlists that are a mix of Apple Music tracks and tracks that have been imported using iTunes Match; specifically remixes that aren't available on the AM platform.

What I'm wondering is if there's a way for gamdl to see that "no, this song isn't available in the normal platform" and either copy it from the local folder on the computer that Music copies it to when its being imported, or grab it from the blobstore that Apple Music stores the contents of iTunes Match tracks in?

If you watch the network tab when trying to play these kinds of tracks, the URL looks something like this:

https://store-033.blobstore.apple.com/sq-mq-us-033-000001/7f/ce/bd/ABCDADCADSDDAAFA-ab59-edae-b5f2-ABCDADCADSDDAAFA/audio?response-content-type=audio%2Fmpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=ABCDADCADSDDAAFA&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=ABCDADCADSDDAAFA%2F20231231%2Fstore-033%2Fs3%2Faws4_request&X-Amz-Signature=ABCDADCADSDDAAFA