A little script to locally cache files from a playlist in Google Play Music for you to enjoy later
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gpm_cache
.coveragerc
.gitignore
.travis.yml
README.md
requirements.txt
setup.cfg
setup.py
tox.ini

README.md


//////
//////////
/////////////
/////////////////
/////////////////////    ,,,,,,,
///////////////////..,,,,,,,,,,,,,,,,,
///////////////.,,,,,,,,,,,,,,,,,,,,,,,,,
////////////,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.
///////////,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.
/////////,,,,,,,,,,,,,,**********,,,,,,,,,,,,,,.
///////,,,,,,,,,,,,******************,,,,,,,,,,,,
///////,,,,,,,,,,**********************,,,,,,,,,,,
//////,,,,,,,,,,*************************,,,,,,,,,,
/////,,,,,,,,,,*************.    .********,,,,,,,,,,
/////,,,,,,,,,**************.    .*********,,,,,,,,,///
////,,,,,,,,,***************. *..**********,,,,,,,,,*////
////,,,,,,,,,***************. *************,,,,,,,,,*//////
////,,,,,,,,,***********.     *************,,,,,,,,,*//////
////,,,,,,,,,,*********       .************,,,,,,,,,/////
/////,,,,,,,,,*********       .***********,,,,,,,,,,/
/////,,,,,,,,,,**********.  ..**********,,,,,,,,,,
//////,,,,,,,,,,,*********************,,,,,,,,,
///////,,,,,,,,,,,,*****************,,,,,,,
////////,,,,,,,,,,,,,,***********,,,,,,
//////////,,,,,,,,,,,,,,,,,,,,,,,,,,
////////////,,,,,,,,,,,,,,,,,,,,,
//////////////,,,,,,,,,,,,,,,
/////////////////,,,,,,,,           ______ ___    ______ __  __ ______
/////////////////////              / ____//   |  / ____// / / // ____/
//////////////////                / /    / /| | / /    / /_/ // __/
//////////////                   / /___ / ___ |/ /___ / __  // /___
///////////                      \____//_/  |_|\____//_/ /_//_____/
////////

gpm-cache

Build Status Maintainability Test Coverage

An innocuous little script that caches information about a GPM playlist using gmusicapi

Please use this script responsibly. Do not use this script to violate the terms of your Google Play account, you might get in to trouble and that would be bad! :O

Installation

Install from GitHub

sudo -H pip install -r requirements.txt
python setup.py install develop

Testing

Test in your environment

python setup.py test

Use tox to run tests on multiple python versions

tox

Usage

gpm_cache \
  --email={your google email} \
  --device-id 'XXXXXXXXXXXXXXXX' \
  --cache-location '~/Music/gpm-download/' \
  --playlist={your GPM playlist} \
  --playlist-cached={playlist to move successfully cached items}
  --rate-limit={rate limit (requests per sec)}

Or, to save yourself typing these arguments multiple times, you can write a config file e.g. gpm_args.txt like this:

    --email
    your@email.com
    --playlist
    Your Playlist Name
    --cache-location
    ~/your-cache-location/
    --debug-level
    info

and then you only have to type

gpm_cache @gpm_args.txt

Roadmap

  • Ask for creds every time
  • Fix only saving to local dir problem
  • implement playlist-cached parameter