gpm-playlister generategpm-playlister generate -s radioscotland
npm install -g gpm-playlister
Permissions: GPM-Playlister needs to be able to write to the file system (login). Using
sudo to install and when running the
login command would resolve any permission errors. However it would be better to fix your npm permissions.
gpm-playlister --helpUsage: gpm-playlister command [options] <argument...>Commands:generate [options] <url|station_name> Generate a playlistlogin <google_username> <password> login to google musicCommand help:gpm-playlister login -hgpm-playlister generate -h
First you must authorise GPM-Playlister to access your Google Play Music account.
gpm-playlister login --helpUsage: login <google_username> <password>Example:gpm-playlister login email@example.com password123
login again to either change or update the account GPM-Playlister is authorised against.
Google account using two step authentication: you must use a newly created app password, in place of your usual account password.
Regular Google accounts: Ensure the "Allow less secure apps" setting is "ON" found here.
What does this do?
Due to no official GPM API we have to use an unofficial one. This will create a mock 'Android' device on your account, which you would be able to see here. The mock android id and token is saved locally in:
config/auth-token.json. GPM-Playlister will masquerade as this authorised device. The app does not locally save your username and password.
Requires authorisation. See: Login
gpm-playlister generate --helpUsage: generate [options] (<url> | <station_name>)Options:-s, --station Station mode: Required when using station name instead of url-g, --guided Guided mode: ask for help when finding matching search results-r, --replace Replace mode: Replace existing GPM playlistExamples:gpm-playlister generate -s radio1gpm-playlister generate -s -r -g radio1gpm-playlister generategpm-playlister generate -r -g
Generate will create/replace a playlist in your Google Play Music library containing:
(Radio Edit)classification, or using
feat.as apposed to
This will ask for user help to match songs from results if no exact matches are found.
gpm-playlister generate -g
GPM-Playlister can also generate playlists from the preset stations available in the config/stations.json. These are BBC radio playlists that are updated weekly. The following would generate a playlist from the BBC Radio 1 playlist.
gpm-playlister generate -s radio1
Will replace an existing GPM playlist if one is found with the same name. If there isn't a match, a new playlist will be generated.
gpm-playlister generate -rgpm-playlister generate -r -s radio1
This is useful in several use cases:
Short flags may be passed as a single arg, for example
-srg is equivalent to
-s -r -g.
gpm-playlister generate -srg radio1
Note: These playlists are generated by myself and shared publicly. They may not always be up-to-date.
GPM-Playlister is licensed under the MIT license. Copyright © 2016, Adam Tavener