Skip to content

media: add opt-in Apple Music animated album covers#2918

Open
FormalSnake wants to merge 1 commit into
AvengeMedia:masterfrom
FormalSnake:feat/apple-music-animated-art
Open

media: add opt-in Apple Music animated album covers#2918
FormalSnake wants to merge 1 commit into
AvengeMedia:masterfrom
FormalSnake:feat/apple-music-animated-art

Conversation

@FormalSnake

Copy link
Copy Markdown

demo

Plays an album's animated Apple Music cover over the static circle art in the media player, looping and muted. Falls back to the static cover whenever there's no video, the fetch fails, QtMultimedia is missing, or playback is paused.

Off by default. When enabled it resolves the cover via the iTunes Search API, an anonymous web-player token scraped from music.apple.com's JS bundle, and the editorialVideo field from amp-api. This is Apple's private web API, the same token any browser gets, but nothing stops them changing it. Only merge if depending on that is fine for the project.

The mp4 is downloaded once to ~/.cache/DankMaterialShell/applemusic-art/ (the ffmpeg backend truncates the HLS stream on some setups) via a temp file and atomic rename, cached per album including misses, and pruned after 30 days. The toggle notes that the playing artist and album are sent to Apple; with it off there are zero requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant