🎼 Fixes music metadata and adds album art.
Python
Latest commit 187bdb6 Jan 20, 2017 @lakshaykalbhor committed on GitHub Changed twitter handle
Permalink
Failed to load latest commit information.
musicrepair Major changes Jan 18, 2017
.gitignore Edited gitignore Dec 11, 2016
LICENSE Readme Nov 28, 2016
MANIFEST.in Major changes Jan 18, 2017
README.md Changed twitter handle Jan 20, 2017
requirements.txt Major changes Jan 18, 2017
setup.py Major changes Jan 18, 2017

README.md

MusicRepair

license Gitter standard-readme compliant

MusicRepair is a python script that fixes your music by adding important tags such as : album name, artist name, lyrics and album art.

Social:

GitHub stars GitHub followers
Twitter Follow

Table of Contents

Features

  1. Fixes songs in nested directories recursively.
  2. Fetches lyrics from Genius
  3. Fetches metadata from Spotify
  4. Multiple options to format file name. eg : {artist}{title} results in : Pink Floyd - Time

Dependencies

Genius API

  1. Create an account and register an application
  2. Grab Access Token
  3. Set access token in config file

Bing Search API

  1. Create an account
  2. Grab Access Token
  3. Set access token in config file
$ musicrepair --config                                               

Enter Genius key : <enter genius key>                                 
Enter Bing key : <enter bing key>

Installation

PyPI

$ pip install musicrepair

Source

$ git clone https://github.com/lakshaykalbhor/MusicRepair
$ cd MusicRepair
$ python setup.py install

Windows users, check this out

Usage

$ musicrepair

Usage

Options

$ musicrepair -h
  __  __           _      _____                  _
 |  \/  |         (_)    |  __ \                (_)
 | \  / |_   _ ___ _  ___| |__) |___ _ __   __ _ _ _ __
 | |\/| | | | / __| |/ __|  _  // _ \ '_ \ / _` | | '__|
 | |  | | |_| \__ \ | (__| | \ \  __/ |_) | (_| | | |
 |_|  |_|\__,_|___/_|\___|_|  \_\___| .__/ \__,_|_|_|
                                    | |
                                    |_|

______________________________________________________________
|                                                            |
| Tries to find the metadata of songs based on the file name |
|                                                            |
| Update : pip install musicrepair -U                        |
|                                                            |
| https://github.com/lakshaykalbhor/MusicRepair              |
|____________________________________________________________|

optional arguments:
  -h, --help            show this help message and exit

  -c, --config          Add API keys to config

  -d REPAIR_DIRECTORY, --dir REPAIR_DIRECTORY
                        Specifies the directory where the music files are located

  -R, --recursive       Specifies whether or not to run recursively
                                                in the given music directory

  -r REVERT_DIRECTORY, --revert REVERT_DIRECTORY
                        Specifies the directory where music files
                                                that need to be reverted are located

  -n, --norename        Does not rename files to song title

  --format RENAME_FORMAT
                        Specify the title format used in renaming,
                        these keywords will be replaced respectively:
                        {title}{artist}{album}

Contribute

Found an issue? Post it in the issue tracker.
Want to add another awesome feature? Fork this repository and add your feature, then send a pull request.

License

The MIT License (MIT) Copyright (c) 2017 Lakshay Kalbhor