项目作者: yashhere

项目描述 :
A command line tool for fixing ID3 metadata and adding Album Art to MP3 songs
高级语言: Python
项目地址: git://github.com/yashhere/BeautifyMP3.git
创建时间: 2017-06-17T13:08:10Z
项目社区:https://github.com/yashhere/BeautifyMP3

开源协议:MIT License

下载




License

Table of Contents

Features

  1. Fixes metadata of songs based on data received from Spotify
  2. Fetches lyrics from Genius
  3. Fetches metadata from Spotify
  4. Can format filenames of songs
  5. Can fetch data for a single song or complete directory

Dependencies

Genius API

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

Spotify API

  1. Create an account and register an application
  2. Grab Client ID and client Secret Code
  3. Set both in config file
  1. $ python addMetadata.py --config
  2. Enter Genius key : <enter genius key>
  3. Enter Spotify Secret token : <enter client secret here>
  4. Enter Spotify Client ID : <enter client id here>

Installing

Source

  1. $ git clone https://github.com/yash2696/BeautifyMP3
  2. $ cd BeautifyMP3
  3. $ python setup.py install

Options

  1. (music-tagger) ~/D/music-tagger ❯❯❯ python addMetadata.py -h
  2. usage: addMetadata.py [-h] [-d REPAIR_DIRECTORY] [-s SONG_NAME] [-c] [-n]
  3. [-f RENAME_FORMAT]
  4. ____ _ _ __ __ __ ____ _____
  5. | __ ) ___ __ _ _ _| |_(_)/ _|_ _| \/ | _ \___ /
  6. | _ \ / _ \/ _` | | | | __| | |_| | | | |\/| | |_) ||_ \
  7. | |_) | __/ (_| | |_| | |_| | _| |_| | | | | __/___) |
  8. |____/ \___|\__,_|\__,_|\__|_|_| \__, |_| |_|_| |____/
  9. |___/
  10. ______________________________________________________________
  11. | |
  12. | Edit Metadata of MP3 files based on file name |
  13. |____________________________________________________________|
  14. optional arguments:
  15. -h, --help show this help message and exit
  16. -d REPAIR_DIRECTORY, --dir REPAIR_DIRECTORY
  17. give path of music files directory
  18. -s SONG_NAME, --song SONG_NAME
  19. Only fix metadata of the file specified
  20. -c, --config Add API Keys to config
  21. -n, --norename Does not rename files to song title
  22. -f RENAME_FORMAT, --format RENAME_FORMAT
  23. Specify the Name format used in renaming, Valid
  24. Keywords are: {title}{artist}{album} )

TODO

  • Add download functionality from youtube
  • add support for last.fm and soundcloud if spotify fails
  • add support for metrolyrics and other lyrics service if genius api fails
  • add support for searching with existing id3 tags if searching with name fails
  • somehow find a way to properly synchronize the lyrics with sound if possible
  • add support for other file types(aac, flac etc)

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.

Disclaimer

The inspiration for this project is MusicRepair.

Downloading copyright songs is illegal in most of the countries. I made this tool for educational purposes and was created for my python learning process. Please support the artists by buying their music.

License

The MIT License (MIT)
Copyright (c) 2017 Yash Agarwal