Giter Site home page Giter Site logo

google-music-dupe-killer's Introduction

Google Music Dupe Killer

Really small scripts designed to remove pesky duplicates from Google Music.

** The duplicates must have all correct meta data as this evaluates their title and album for detection.

Thanks to simon weber for a GREAT client library that made this super easy to code.

Usage

These are incredibly simple scripts, but do require a few small configurations.

  • For most environments with Python 3 already installed:

    $ pip install gmusicapi

  • If you do not have pip or are running windows, please see Unofficial Google Music API usage

Change login credentials

  • Near line 12 in the script, change the 'username' and 'password' to your Google account credentials.
  • Alternatively, create an empty file called 'credentials.py' in the script directory and set the username and password variables there.
# credentials.py
username = '[email protected]'
password = 'changeme'
#android_id = 'deadbeefc0decafe'
  • NOTE: Users with 2-step authentication enabled will have to create an App Specific Key/Password. Login into your Google account and head to https://security.google.com/settings/security/apppasswords, there you will be able to manually generate an App Specific password. After creating the Key/Password, just use it to login into this App, together with your usual Google username/email.

  • NOTE: If you see the error message "a valid MAC could not be determined." you are running into a known issue with the Google Music API. To workaround, set a new 16 digit hexadecimal number as your android_id on line 17 or in credentials.py.

Run kill_dupes

  • The script will automatically detect and remove duplicates on any songs in your library.

Run kill_playlist_dupes

  • This script works on one playlist at a time and removes the second through nth duplicate of a track in a playlist.

Thanks!

google-music-dupe-killer's People

Contributors

maxkirchoff avatar ktully avatar gigasproule avatar arteconceito avatar jorti avatar csoren avatar gregoryschwartz avatar jfperusse avatar oneko avatar mcsarge avatar thecaptain989 avatar prosewall avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.