Skip to content

A basic script for importing songs from a CSV to your Google Music All Access library.

Notifications You must be signed in to change notification settings

suihanki/gmusic-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

gmusic-import

A basic script for importing songs from a csv to your Google Play Music library. Definitely a work in progress!

Heavily dependent on the awesome gmusicapi library (which in turn has its own dependencies, so definitely take a look before running).

A few notes:

  1. Built when I realized there was no easy way to import my Rdio library to Google Music
  2. I used it to successfully add over 13,000 songs to my library from my Rdio collection (took about 30-45 minutes)
  3. Requires that you have a Google Play Music subscription (formerly Google Music All Access I believe)
  4. Built to import from a local csv file containing track name, artist, album name, and track number (but can be easily modified)

How it works:

  1. Update the username and password variables in the gmusic-import-script.py file (you'll also need to generate an app specific password)
  2. Point the script at a local csv file containing all the tracks you'd like to add to your library (look at example.csv for formatting (run python gmusic-import-script.py name-of-your-csv-file.csv)
  3. The script will first search the Google Play Music catalogue for each row in your csv, and attempt to find matches
  4. Once it processes the entire csv, it will let you know how many matches it found, and ask if you'd like to import (if you like you can exit the script at this point and look at the matched_tracks.csv to see what it found)
  5. Next it will add each track to your library by ID
  6. At the end you should have: matched_tracks.csv with all your matches
    no_matches.csv with songs we couldn't find (it's formatted perfectly so that you can retry import at a later date)
    library_track_list.csv with a list of Google Play Music track IDs and track names that we imported (so you can delete what you uploaded if you make a mistake, I haven't built any deletion capabilities yet)

A few gotchas:

  1. It won't necessarily add an entire album to your library if you don't have all the songs listed in your CSV (would be simpler to just find the album and add that but gmusicapi doesn't support that and also I'm pretty picky sometimes about which tracks I add :)
  2. Could definitely use better error catching/logging...
  3. Probably not very efficient (brute forced my way through figuring out how to do different types of loose/exact matching)

About

A basic script for importing songs from a CSV to your Google Music All Access library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages