https://github.com/0xwdg/apple-music-to-discord
Apple Music to Discord
https://github.com/0xwdg/apple-music-to-discord
0xwdg apple apple-music applemusic discord discord-music discord-rich-presence ipc music rpc streaming swift swiftlang swiftui
Last synced: 5 months ago
JSON representation
Apple Music to Discord
- Host: GitHub
- URL: https://github.com/0xwdg/apple-music-to-discord
- Owner: 0xWDG
- License: mit
- Created: 2023-12-05T19:34:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T20:18:09.000Z (8 months ago)
- Last Synced: 2025-06-04T05:34:00.874Z (5 months ago)
- Topics: 0xwdg, apple, apple-music, applemusic, discord, discord-music, discord-rich-presence, ipc, music, rpc, streaming, swift, swiftlang, swiftui
- Language: Swift
- Homepage: https://wesleydegroot.nl/apps/AM2D
- Size: 997 KB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Apple Music to Discord (M2D)

Display your Apple Music play status to Discord.
# Functions finished
- [x] Read current song info from Apple Music
- [x] Update Discord presence to show information
- [x] Fetch album art
- [ ] Support Indicator for Stopped/Playing/Pause status
- [x] Remove requirement to start Discord first (retry connecting when failed)
- [x] Check if Apple Music has started, for initial song info (now the song info will be fetched when connected to Discord)
- [x] Make `<` (back), `=` (pause), `>` (next) buttons work.
- [x] ~~Remove spinner if loading of artwork fails.~~ Spinner now have the same size as the artwork, and will hide if failed.
- [ ] Support auto start at login
- [ ] Better error handling
# How to use
Open `AM2D.xcodeproj` and change `DISCORD_API_KEY.swift` to include your own Discord API key.
You can create one (for free) at https://discord.com/developers/applications
Be sure to go to `YOUR_APP_NAME` -> `Settings` -> `Rich Presence` -> `Art Assets` and upload the Apple Music logo there (called `am`) or use the logo of your own app.
# Debugging
To see more information about what is happening,
- You can hold `Option` and click on the `M2D` icon in the menu bar.
- you can open the Console app and search for `nl.wesleydegroot.am2d`.
# Screenshots
AM2D
Discord

# FAQ
Will this app come to the App Store?Probably not since it does not work with the sandbox being enabled.
# Support / Bug reporting.
Please [create an issue](https://github.com/0xWDG/Apple-Music-to-Discord/issues/new).
# Contact
We can get in touch via [Mastodon](https://mastodon.social/@0xWDG), [Twitter/X](https://twitter.com/0xWDG), [Discord](https://discordapp.com/users/918438083861573692), [Threads](http://threads.net/@0xwdg), [Bluesky](https://bsky.app/profile/0xwdg.bsky.social).
Alternatively you can visit my [Website](https://wesleydegroot.nl)
# Changes
17-NOV-2024:
- Small Improvements.
- Code cleanup.
- Open sourced the project.
- Changed this readme to be more informative.
- Updated screenshots.
15-DEC-2023
• Play/Pause, Previous and Next buttons are working
• Fixes remaining time being incorrectly after switching to a new song
• Updated GUI a little bit.
Revision 1
• Retry if Discord is not found.
• Check if Apple Music is running.
• Remove requirement to start everything in a particulair order.
05-DEC-2023• Initial version.