Skip to content

Squeezebox (Logitech Media Server) Plug-in for Google Play Music

Notifications You must be signed in to change notification settings

elfez/squeezebox-googlemusic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squeezebox-googlemusic

Travis CI build status

This is a Squeezebox (Logitech Media Server) Plug-in for playing music from your Google Play Music library and All Access. It is based on the Python Unofficial Google Play Music API and the ability of inlining Python in Perl programs.

Installation

This installation procedure will only work on Linux based systems. At the moment I do not know if this will ever work on Windows or Mac OS. Please let me know if you found a way to get this plugin running on non-Linux systems to extend this How-to.

  1. You will need a Google account and some music and/or playlists in your library. If you want to use Google Music All Access features you will need a subscription to this service.

  2. Install Python and Python pip.

  3. Install the Unofficial Google Play Music API by running:

      sudo pip install gmusicapi
    

    Note: You will need at least version 3.1.0 of gmusicapi.

  4. To be able to build the Perl package Inline::Python (see below) you will need the Python developer package. The name of the package and the way how to install it depends on your Linux distribution. On Debian based systems you will have to do:

      sudo apt-get install python-dev
    

    On redhat systems do:

      sudo yum install python-devel
    
  5. Install the Perl CPAN package Inline and Inline::Python by running:

      sudo cpan App::cpanminus
      sudo cpanm --notest Inline
      sudo cpanm --notest Inline::Python
    
  6. To install the plugin, add the repository URL http://hechtus.github.io/squeezebox-googlemusic/repository/repo.xml to your squeezebox plugin settings page.

Usage

  1. Go to the plug-in settings page and set your Google username and password for the Google Music plug-in.

  2. The mobile device ID is a 16-digit hexadecimal string (without the '0x' prefix) identifying the Android or iOS device you must already have registered for Google Play Music. On Android you can obtain this ID by dialing *#*#8255#*#* on your phone (see the aid) or using this App (see the Google Service Framework ID Key). You may also use the script mobile_devices.py to list all registered devices. If your Android or iOS device is already registered, you may leave the field Mobile Device ID empty. It will be filled in automatically after setting the username and password.

    Note: A registered PC MAC address will not work as a mobile device ID.

  3. Enable All Access if you have an All Access subscription.

  4. You will find the plug-in in the 'My Apps' section of the squeezebox menu.

Project resources

ToDo

I'm looking forward to your help. Feel free to contribute or to report bugs. Here are some things you may help on:

  • Get this plugin running on non-Linux systems
  • Add or improve translations to other languages
  • Test the plugin with various Android or iOS Apps. Is it working with iPeng?
  • Support for creating and deleting radio stations
  • Improve Track and Album Info

About

Squeezebox (Logitech Media Server) Plug-in for Google Play Music

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 99.1%
  • Python 0.9%