stevenewbs / gmpydl

Google Music Python Downloader
MIT License
22 stars 8 forks source link

gmpydl

Google Music Python Downloader

Basic idea is a command line downloader thing that can sit on a raspberry pi or server and auto-grab any new music I buy.

Uses this library to interact with the googs:

https://github.com/simon-weber/Unofficial-Google-Music-API

http://unofficial-google-music-api.readthedocs.org/en/latest/index.html

Requirements

Usage

git clone https://github.com/stevenewbs/gmpydl
cd gmpydl
./gmpydl

If ~/.gmpydl/.gmpydl.conf does not exist (first run), you will be asked to confirm your Google account details and the directory you want your music to end up in.

You may also want to set uploader ID if gmusicapi can't resolve computer's MAC, see https://unofficial-google-music-api.readthedocs.io/en/latest/reference/musicmanager.html#gmusicapi.clients.Musicmanager.login

Example of how to get MAC in linux for uploader ID: ip link | grep ether | awk '{ print $2 }' | tr '[:lower:]' '[:upper:]'

Options

Changes

ToDo

As a result of hacking in the 1.6 feature the code is now super ugly - sorry! When I have time I am going to tidy it up and possibly add a GUI option.