GithubHelp home page GithubHelp logo

cr0ybot / gmusic-playlist.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soulfx/gmusic-playlist.js

0.0 2.0 0.0 64 KB

a javascript version of gmusic-playlist

License: MIT License

JavaScript 100.00%

gmusic-playlist.js's Introduction

gmusic-playlist.js

javascript based playlist scripts for gmusic

prerequisites

installation

  • install the appropriate addon for your browser
  • open the gmusic-playlist.user.js script in your browser and click the install button.

usage

  • navigate to Google Music
  • click the menu item to access the import / export functionality.

Screenshot

importing

the script will allow songs to be imported from csv formated files. a single file will be used for one or more playlists, a column in the csv file will indicate which playlist a song belongs in. the first row of the csv file will be reserved for headers indicating what each column in the file is.

see the example.csv file for a fairly detailed set of playlists and see the example_minimal.csv file for the minimum required structure needed for importing a list of songs.

when creating a csv file use the unicode utf-8 character set and a comma as a the seperator character. some spreadsheet apps default to another character set when saving to csv so be aware.

click the button bellow Import Playlists to select the csv file to import.

after the file is imported, a results csv file will be provided that includes all the songs that were imported and their associated ids and other info. the file can be used to see which songs imported correctly and which ones didn't. for the songs that didn't import correctly the data can be updated and the file re-imported if needed.

exporting

the script will export songs to csv formated files. a single file will be exported for all playlists. each song will have the playlist that it belonged to exported as a column in the csv file. the first row of the csv file will be reserved for headers indicating what each column in the file is.

click the Export Playlists link to export the playlists.

in addition to playlists, the entire personal library will also be exported into a playlist called Library.

debugging

when editing the script in tampermonkey place debugger; statements within the script to have the debugger console stop at those breakpoints so that variables and logic can be easily inspected. since google may change the response format for search and song data, the key place to check that the code is looking for data in the right place are in the fromGMusic methods of the Songlist and Song structures.

known issues

no firefox support

although there is a greasemonkey addon for firefox this script is only compatible with chrome for now.

large playlists

when importing a new playlist avoid importing large playlists (10k+ songs) all at once. google only allows so many search operations per period of time. if the max number of allowed operations per period of time is reached any further requests to the google music service will be denied until a cool down period has passed.

see also

gmusic-playlist.js's People

Contributors

soulfx avatar cr0ybot avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.