gmusic-playlist icon indicating copy to clipboard operation
gmusic-playlist copied to clipboard

Thumbs Up Export doesn't export every song

Open soulfx opened this issue 9 years ago • 1 comments

The current implementation of exporting the thumbs up playlist delivered in https://github.com/soulfx/gmusic-playlist/pull/18 doesn't export the thumbed up songs that are not part of the library.

It is possible to have a few of these songs by listening to radio stations and thumbing up tracks along the way, etc.

The current work-around is to use the google web client to select all thumbed up tracks and then add them to the library using the options menu drop down.

soulfx avatar May 10 '15 02:05 soulfx

@soulfx There doesn't seem to be an option in the menu to add all thumbs up tracks to the library.

As an alternative workaround, I found a script by jmiserez on stackexchange that can be executed in the browser console to automatically scroll from the top of the playlist page to the bottom while saving the playlist songs into a javascript object.

Usage:

  1. Log in to Google Music web client in a browser (I tested in Chrome).
  2. Load Thumbs Up playlist.
  3. Open Chrome developer console.
  4. Paste contents from script.
  5. Wait for scrolling to finish.
  6. Run copy(allsongs) in the console to copy the resulting JSON object to the clipboard.

Note that each song is represented by an object like:

  {
    "dataid": "7778d2b1-2daa-38ae-a053-05e0416ceacb",
    "index": "",
    "title": "\n    \n  Zero Orchestra",
    "duration": "4:45",
    "artist": "Matthew Good",
    "album": "Lights of Endangered Species",
    "playcount": "33",
    "rating": "5",
    "rating_interpretation": "thumbs-up"
  }

where dataid corresponds to the storeId in the gmusicapi.

cfobel avatar Sep 17 '18 20:09 cfobel