Skip to content

Script for MacOS that downloads and adds newly added Youtube Music songs to iTunes.

License

Notifications You must be signed in to change notification settings

prawwtocol/ytm-to-itunes

Repository files navigation

1. Youtube Music to iTunes (Apple Music) converter

Script for MacOS that downloads and adds newly added Youtube Music songs to iTunes.

Proud GitHub Issues or Pull Requests enjoyer; GitHub License

: ➡️ Apple Music Logo PNG Photo | PNG Arts

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.

1.1. Running form releases

1.1.1. Prerequisites:

  1. Ensure you have enough space on drive for your songs

1.1.2. Running:

  1. Download binaries from latest release
  2. chmod +x main ytm_oauth
    1. If you don't have oauth.json, login to Apple Music by running: ytm_oauth in Terminal
      1. Follow instructions in browser, after that return to Terminal and press [ENTER]
    2. If you do have oauth.json, run main. Specify full or relative path to oauth.json
  3. Sit back and relax

1.2. Running from source

1.2.1. Prerequisites:

  1. python 3.12.1 or any of your liking
  2. MacOS with applescript support
  3. pipenv python package
  4. Ensure you have enough space on drive for your songs

1.2.2. Running:

  1. git clone https://github.com/prawwtocol/ytm-to-itunes.git
  2. cd ytm-to-itunes
  3. pipenv install
  4. ytmusicapi oauth
    • Authenticate with Youtube Music, then return to Terminal and press [ENTER]
  5. Run with python main.py when you need to sync. Specify full or relative path to oauth.json
  6. Sit back and relax

1.3. Building executables:

pyinstaller main.spec
pyinstaller ytm_oauth.spec

1.4. Similar projects:

About

Script for MacOS that downloads and adds newly added Youtube Music songs to iTunes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages