Skip to main content

Google MusicManager package to manage your music library to Google Music - Upload module

Project description

Google Music Manager - Uploader

latest release PyPI version Bitcoin donation Litecoin donation PayPal donation

This program will replace former Google MusicManager to upload your music library to Google Music

This work is based upon Simon Weber’s Google Music API.

Installation

Avconv is needed to convert some of your files due to Google’s MP3 constraint also, this program needs watchdog, gmusicapi, netifaces and bs4 Python libraries to work.

apt-get install python3-pip libav-tools build-essential
pip3 install google-music-manager-uploader

Once installed, You have to authenticate to Google Music via the google-music-auth command

# Usage google-music-auth [path_to_oauth_cred_file=~/oauth]

If first parameter is not defined, the script will try to store/load your oauth credentials through the ~/oauth file.

Then follow prompted instructions.

You will be asked to go to a Google URL to allow the connection:

Visit the following url:
    https://accounts.google.com/o/oauth2/v2/auth?client_id=XXXXXXXXXXX.apps.googleusercontent.com&access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fmusicmanager&response_type=code&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
Follow the prompts, then paste the auth code here and hit enter:

Usage

Uploader

This program will scan a given directory for new elements to upload them to Google Music. First, launch the daemon to watch a directory new inputs.

It will NOT upload already existing files, ONLY new files while the daemon is running. (Please contribute if you want this to change)

usage: google-music-uploader [-h] [--directory DIRECTORY] [--oauth OAUTH] [-r]
                          [--uploader_id UPLOADER_ID] [-o]

optional arguments:
  -h, --help            show this help message and exit
  --directory DIRECTORY, -d DIRECTORY
                        Music Folder to upload from (default: .)
  --oauth OAUTH, -a OAUTH
                        Path to oauth file (default: ~/oauth)
  -r, --remove          Remove files if present (default: False)
  --device_id DEVICE_ID, -i DEVICE_ID
                        Device identification (should be an uppercase MAC
                        address) (default: <current eth0 MAC address>)
  -o, --oneshot         Upload folder and exit (default: False)

About

Requirements

Google Music Uploader works with Python 3 or above. It requires Simon Weber’s Google Music API and Watchdog.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Jay MOULIN jaymoulin@gmail.com See also the list of contributors which participated in this program.

License

Google Music Uploader is licensed under the MIT License

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
google_music_manager_uploader-1.2.4.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page