项目作者: spyer

项目描述 :
Parse lyrics and add them into mp3 files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players.
高级语言: Python
项目地址: git://github.com/spyer/lyrics2mp3.git
创建时间: 2018-01-02T13:29:54Z
项目社区:https://github.com/spyer/lyrics2mp3

开源协议:MIT License

下载


lyrics2mp3

Parse lyrics and add them into mp3 and m4a files (via id tags).
Lyrics can then be viewed on iPhone, iTunes and other players.

What script does:

  1. Scans directory recursively, or each file in playlist, for music files.
  2. Reads artist and title from music tag.
  3. Searches lyrics for each song on genius.com, azlyrics.com, lyricsgenius.com, songlyrics.com
  4. Inserts lyrics into music file if found (unless simulating).

Installation:

  1. git clone https://github.com/spyer/lyrics2mp3.git
  2. pip3 install -r requirements.txt

If you have trouble installing, please check if taglib library is installed (may have to compile).

Usage:

  1. Required arguments:
  2. one of:
  3. --dir DIR Directory to search for music files
  4. --m3u PATH Playlist to search for music files
  5. Optional arguments:
  6. --genius_token TOKEN API token for genius.com music database. Without this token Genius will not be used. Sign up for token at https://genius.com/api-clients
  7. --write_on_not_found Write '...' on files with no lyrics found
  8. --overwrite Overwrite existing lyrics
  9. --ignore_artist Ignore files' artists, look at song name only
  10. --simulate, -s Simulate retrieval but change no files
  11. --verbose, -v Level of debug info to display
  12. --help Show all arguments