https://github.com/albertomorini/glyrics
A lyrics injector to your songs (for itunes)
https://github.com/albertomorini/glyrics
audio filesystem genius-api genius-lyrics lyrics music python rest-api
Last synced: 6 months ago
JSON representation
A lyrics injector to your songs (for itunes)
- Host: GitHub
- URL: https://github.com/albertomorini/glyrics
- Owner: albertomorini
- Created: 2022-07-16T15:10:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-23T21:25:18.000Z (8 months ago)
- Last Synced: 2025-04-11T03:13:32.757Z (6 months ago)
- Topics: audio, filesystem, genius-api, genius-lyrics, lyrics, music, python, rest-api
- Language: Python
- Homepage:
- Size: 4.23 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Glyrics lyrics for Apple Music
Glyrics allow you to store the genius lyrics into your songs.
## IDEA
Was mainly made for iTunes/Apple Music/iPhoneMusic, insted of copy and paste inside the lyrics of songs, you can do automatically.
**Works only with mp3 and m4a**
### Some pics
## Flow
1) glyrics.py -> works with M4A and MP3 files, for each song check into a self registry (glyrics.json) if the song is already searched and founded, avoiding useless searches for songs that already have a lyrics.
- if glyrics found the lyrics, it will store into the song file then do the MD5 of song's name and store into the registry2) glyricsSelf.py -> works **only** with M4a, checking if the tag "©lyr" is empty or not, then it search etc..
- not with mp3 because mp3 use differents tag (see problems chapter)
## Usage:
`$ python3 glyrics.py mode "path"`
- mode = "search" for search/add lyrics, "flush" for delete the existing lyrics
- path is the path to your music folder (is recursive, found every song stored in every subfolder) like /Media/Music/...### Requirements:
- is required a good folder's structure, like iTunes does:
>
artist1/
album1/
album2/
artist2/
album1/
....- Python3 with:
- os
- sys
- lyricsgenius
- tinytag
- mutagen
## PROBLEMS:
1) Genius's search: if a song has featuring or is a remix i remove that info.
Why? Because can brings us different results.eg. title="Pain 1993 (feat. Playboi Carti)", artist="Drake"
download the lyrics in (i guess) Cyrillic languages.instead, title = "Pain 1993", artist="Drake"
download the lyrics in English language.
**working on it**2) We can't do a self glyrics for MP3, because it's an awful format cause doesn't have a defined single tag like M4A ("©lyr"), MP3 has "USLT:desc:eng".. Maybe we can use a regular expression "USLT*" to search the tag. *Working on it*

### TODO
- [ ] correct the artist/title tags, eg. artist="Drake & Kanye West" song="Glow" is wrong, because the artist is "Drake" and the song is "Glow (feat. Kanye West)".. so search on genius the song get the righ info.