Script for MacOS that downloads and adds newly added Youtube Music songs to iTunes.
Youtube Music:
- has better recommendations
- has more content
Apple Music:
- better library organinzation
- files always offline
- free download of songs on Android
I want to listen and discover songs on Youtube Music, and periodically sync any new songs to my iTunes library; which is why I wrote this script.
- Ensure you have enough space on drive for your songs
- Download binaries from latest release
chmod +x main ytm_oauth
- If you don't have
oauth.json
, login to Apple Music by running:ytm_oauth
in Terminal- Follow instructions in browser, after that return to Terminal and press [ENTER]
- If you do have
oauth.json
, runmain
. Specify full or relative path tooauth.json
- If you don't have
- Sit back and relax
python 3.12.1
or any of your liking- MacOS with applescript support
pipenv
python package- Ensure you have enough space on drive for your songs
git clone https://github.com/prawwtocol/ytm-to-itunes.git
cd ytm-to-itunes
pipenv install
ytmusicapi oauth
- Authenticate with Youtube Music, then return to Terminal and press [ENTER]
- Run with
python main.py
when you need to sync. Specify full or relative path tooauth.json
- Sit back and relax
pyinstaller main.spec
pyinstaller ytm_oauth.spec
-
https://soundiiz.com/ – freemium, doesn't add to local storage
-
https://alternativeto.net/software/soundiiz/ – also freemium alternatives