Skip to main content

Compact player for Google Music

Project description

Code Health

A seamless single-line player for Google Music and (soon!) local MP3 files.

Optimised to run in a terminal on a single console line, using all kinds of horrible tricks.

While this started off as a fork of Dan Nixon’s PlayMusicCL, it ended up being almost completely different in the way it worked. All credits go to him for the initial idea though, and for the idea of using pygst (however much grief it was to port to 1.0!).

Uses Simon Weber’s GMusic API, oh ye gods, I am not worthy. That code is badass.

Shame it’s stuck with Python 2.x though (API has troubles with OAuth, and really it’s all Google’s fault).

Command list:

  • a - Adds a file to the end of the playlist

  • s - As above, but also begins playing it. Playlist is unchanged.

  • < - Skip to previous song

  • > - Skip to next song

  • Space - Play/Pause

  • Shift+Q - Quit

  • c - Clear playlist. The current song will stay playing.

  • z - Play a random song. The playlist remains intact, and the random song is appended to the end of it.

  • Shift+S - Append all search results to playlist.

  • Shift+A - Adds a file to the end of the playlist, but keeps the search results loaded. Press q to get rid of them.

Pressing Control-C on any ‘Search:’ prompt will safely cancel the request and return you to the main player interface.

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page