An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Apple Music to Discord (M2D)
image

Display your Apple Music play status to Discord.


Download


# 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



image


image

image

# 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.