Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

WARNING

As of December 2020, the Google Play Music service is no longer operational. Thus, the maintenance of this extension has been stopped. The mopidy-gmusic package has been removed from Debian/Ubuntu, and the Git repo is put into archive mode.


Mopidy-GMusic

Latest PyPI version CircleCI build status Test coverage

Mopidy extension for playing music from Google Play Music.

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

Metadata

Release files for Mopidy-GMusic 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Mopidy-GMusic 4.0.1
File Size Uploaded
Mopidy-GMusic-4.0.1.tar.gz 24.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Mopidy-GMusic 4.0.1
File Interpreter ABI Platform
Mopidy_GMusic-4.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 44.3 kB

Release files / Mopidy-GMusic-4.0.1.tar.gz

Download URL Mopidy-GMusic-4.0.1.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
da8d64352e8b3ff57c91cc89bd9c17babd80dd176921b0f5522943c125207004
BLAKE2b-256 checksum
How to use checksums
82b2753b96e116f762afdb69e387e079746672dc44943fdf8267bd7c6b47e4d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

Release files / Mopidy_GMusic-4.0.1-py3-none-any.whl

Download URL Mopidy_GMusic-4.0.1-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b00dafeef14748719ee0cfad568f90f270d1bbe3109bbdc57914cd70ddc3969
BLAKE2b-256 checksum
How to use checksums
d67525b754da27a66eb23b1040242b8a7b028916d8f925e03a2085b709021d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page