• This repository has been archived on 07/Dec/2020
  • Stars
    star
    214
  • Rank 183,609 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DEPRECATED (Mopidy extension for playing music from Google Play Music)

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

More Repositories

1

mopidy

Mopidy is an extensible music server written in Python
Python
7,999
star
2

mopidy-spotify

Mopidy extension for playing music from Spotify
Python
930
star
3

mopidy-soundcloud

Mopidy extension for playing music from SoundCloud
Python
183
star
4

mopidy-mpd

Mopidy extension for controlling playback from MPD clients
Python
98
star
5

mopidy.js

JavaScript library for controlling a Mopidy music server over a WebSocket from browsers or Node.js. This is the foundation of Mopidy web clients.
JavaScript
75
star
6

libspotify-archive

Archive of the latest libspotify releases from Spotify
69
star
7

mopidy-scrobbler

Mopidy extension for scrobbling played tracks to Last.fm
Python
66
star
8

mopidy-local

Mopidy extension for playing music from your local music archive
Python
61
star
9

mopidy-beets

Mopidy extension for playing music from a Beets collection
Python
49
star
10

mopidy-alsamixer

Mopidy extension for ALSA volume control
Python
42
star
11

mopidy-mpris

Mopidy extension for controlling Mopidy through the MPRIS D-Bus interface
Python
35
star
12

libspotify-deb

Debian package of libspotify
HTML
30
star
13

mopidy-local-sqlite

DEPRECATED (Mopidy SQLite local library extension)
Python
30
star
14

mopidy-pandora

A Mopidy extension for playing music from Pandora.
Python
27
star
15

homebrew-mopidy

Homebrew formulas for Mopidy and Mopidy extensions
Ruby
22
star
16

mopidy-api-explorer

Mopidy extension which lets you explore the JSON-RPC API.
HTML
20
star
17

cookiecutter-mopidy-ext

cookiecutter template for creating a Mopidy extension
Python
18
star
18

website

The Mopidy project's website, excluding docs
Sass
12
star
19

mopidy-dirble

DEPRECATED (Mopidy extension for Dirble open radio directory)
Python
11
star
20

mopidy-local-images

DEPRECATED (Mopidy local library proxy extension for handling embedded album art)
Python
9
star
21

mopidy-orfradio

Mopidy extension to access the Austrian ORF radio stations' livestreams and 7 day archives
Python
5
star
22

mopidy-nad

Mopidy extension for controlling volume using an external NAD amplifier
Python
4
star
23

mopidy-packages

DEPRECATED (Tools for tracking projects in the Mopidy ecosystem)
Python
4
star
24

libmockspotify

DEPRECATED (A mock of libspotify for use in development of language bindings)
C
3
star
25

mopidy-local-whoosh

DEPRECATED (Whoosh local library extension for Mopidy)
Python
2
star
26

apt

The Mopidy APT repository of Debian/Ubuntu packages.
HTML
1
star
27

infrastructure

Mopidy project infrastructure as code
Dockerfile
1
star