Skip to main content

Mopidy extension for playing music from Google Play Music

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Latest PyPI version CircleCI build status Test coverage

Mopidy extension for playing music from Google Play Music.

Co-maintainer wanted

We are currently looking for a co-maintainer. Preferably someone who is familiar with the codebase, familiar with Python development, and uses the uploaded music feature. If you’re interested, please take a look at the code base and work on submitting a pull request or two to show you understand how everything works together. If you need help getting a development environment set up, don’t hesitate to ping “belak” in the #mopidy channel on the Freenode IRC network.

Dependencies

You must have a Google account, and either:

  • have some music uploaded to your Google Play Music library, or

  • have a paid subscription for Google Play Music.

Installation

Install by running:

sudo python3 -m pip install Mopidy-GMusic

See https://mopidy.com/ext/gmusic/ for alternative installation methods

Configuration

Run mopidy gmusic login to obtain a refresh token, and then include it in your config file:

[gmusic]
refresh_token = <your refresh token>

Google Play Music now requires all clients to provide a device ID. In the past, Mopidy-GMusic generated one automatically from your MAC address, but Google seems to have changed their API in a way that prevents this from working. Therefore you will need to configure one manually.

If no device ID is configured, Mopidy-GMusic will output a list of registered devices and their IDs. You can either use one of those IDs in your config file, or use the special value mac if you want gmusicapi to use the old method of generating an ID from your MAC address:

[gmusic]
deviceid = 0123456789abcdef
# or
deviceid = mac

By default, All Access will be enabled automatically if you subscribe. You may force enable or disable it by using the all_access option:

[gmusic]
all_access = true

By default, the bitrate is set to 160 kbps. You can change this to either 128 or 320 kbps by setting:

[gmusic]
bitrate = 320

All Access radios are available as browsable content or playlist. The following are the default config values:

[gmusic]
# Show radio stations in content browser
radio_stations_in_browse = true
# Show radio stations as playlists
radio_stations_as_playlists = false
# Limit the number of radio stations, unlimited if unset
radio_stations_count =
# Limit the number or tracks for each radio station
radio_tracks_count = 25

The library and playlists are automatically refresh at regular intervals. Refreshing can be CPU intensive on very low-powered machines, e.g. Raspberry Pi Zero. The refresh intervals can be configured:

[gmusic]
# How often to refresh the library, in minutes
refresh_library = 1440
# How often to refresh playlists, in minutes
refresh_playlists = 60

Usage

The extension is enabled by default if all dependencies are available. You can simply browse through your library and search for tracks, albums, and artists. Google Play Music playlists are imported as well. You can even add songs from your All Access subscription to your library. Mopidy will able to play them.

Project resources

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Mopidy-GMusic-4.0.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Mopidy_GMusic-4.0.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file Mopidy-GMusic-4.0.0.tar.gz.

File metadata

  • Download URL: Mopidy-GMusic-4.0.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for Mopidy-GMusic-4.0.0.tar.gz
Algorithm Hash digest
SHA256 8376054f5a3a088e67bc654d2faf6189d373aa01a6a43287cea918ed68e5da93
MD5 bda1161b0177cd4d5c290b708bf85970
BLAKE2b-256 d2375cd9874a21bf06db747fd7264dc07938c1e1ccf9b80ec68a2ef6e8350c64

See more details on using hashes here.

File details

Details for the file Mopidy_GMusic-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: Mopidy_GMusic-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for Mopidy_GMusic-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e5a4012efdd9d43b602a6eaee29b1d0e9444790b60e9c700ba435eff644f541
MD5 6561ef90e76b72645190ffac37ce099d
BLAKE2b-256 17e32b80f2d73fc507bcd203a2e655858e7d0a66f7e5cf2fd5f87e3f5e4eb69f

See more details on using hashes here.

Supported by

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