Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.67 KB

DEVELOPER_INFO.md

File metadata and controls

31 lines (22 loc) · 1.67 KB

Developer Info

Feel free to take a look at how it works! The code isn't obfuscated and I think it's reasonably understandable. Feel free to shoot me a message if you have any questions.

Methodology

Here's an overview of how it works:

  1. Authorizes with your Spotify account.
  2. Retrieves playlist data from Spotify.
  3. Checks for changes:
    • New playlists
    • New tracks in playlists
  4. Checks against previously downloaded tracks to see what needs to be downloaded.

So now the program knows the tracks you've added to your Spotify playlists, and it can start downloading the changes.

  1. Authorizes with your deezer account.
  2. Downloads the new tracks using deemix.
  3. Downloads the rest of the new tracks using youtube_dl.
  4. Stores the tracks in playlist format: JSON, m3u, and iTunes, as appropriate.

Libraries

Some of the main libraries iDeemYouWorthy uses:

  • deemix to download the tracks.
  • The iTunes COM library to interface with iTunes. Its documentation is available from Apple's developer website (search for "iTunes"). You need a free developer account. A digital version of the documentation can be found here. To see how to use Windows COM with Python, check this out.
  • Spotipy, a Python library for Spotify's web API.
  • youtube_dl to download YouTube videos.
  • youtube_search to search for YouTube videos.