Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/krayc425/applemusicbackup

A tool to backup your Apple Music library, and transfer songs from one Apple ID's library to another.
https://github.com/krayc425/applemusicbackup

apple-music apple-music-api apple-music-downloader

Last synced: 3 months ago
JSON representation

A tool to backup your Apple Music library, and transfer songs from one Apple ID's library to another.

Awesome Lists containing this project

README

        

# AppleMusicBackup

This repo can help you backup your Apple Music library, and transfer them from one Apple ID to another.

# Usage

**You need to have Apple Music subscription to do following operations.**

1. Sign in you Apple ID, click **Get Songs** to fetch the list of your Apple Music library songs.
2. While in app, click **Save to File** to save a `.txt` file of a list of song ids somewhere (like iCloud Drive).
3. Sign in another Apple ID, click **Import from File** and select the file from last step to import these songs into your current library.

# Steps

1. Follow steps [here](https://help.apple.com/developer-account/#/devce5522674) to generate a `MusicKit identifier` and a private `.p8` key file.
2. Install `pip` if you haven't.
3. Install these two packages.
```Sh
sudo pip install pyjwt
sudo pip install cryptography
```
4. Copy your `Developer Team ID`, `MusicKit ID` and private key in the `.p8` file into `musictoken.py`.
5. Run `python(3) musictoken.py`
6. Copy the generated token to `AppleMusicBackup/DeveloperToken.swift`.
7. Remember to generate a new token after 24 hour expiration time.
8. Install `CocoaPods` if you haven't.
9. Run `pod install`.
10. Open `AppleMusicBackup.xcworkspace`, import your `.mobileprovision` file and run.