Intro
After my first Web Source Script [WS] Tunebat and working on knowledge of regular expressions, I decided to create a new script and start a new thread to improve a web script for the best lyrics web source.
I've been working on trying to search on genius.com songs by artist and title and get a dialog to select the best option. It has been impossible for me to get search results, so I've seen it is better to try your luck and access directly to a web address. Maybe one day I will develop a search script.
Since version 0.52, HTML support has been removed, so only the JSON version will be maintained. It should be said that this version has more possibilities, as it offers more information related to the song.
Scripts brings forward an optional fully qualified URL, and you can change or find it using a web browser and copy/paste the url in input dialog. The original option is developped by Ouargi, to remove some forbidden characters from titles and artists.
Since version 0.52 of the script you will find a configuration dialog like this, by accessing Tag Sources>Genius>Settings
Options
Use UNSYNCEDLYRICS: Check if you want to useUNSYNCEDLYRICSinstead ofLYRICStag.ARTISTorigin: Since version 0.52, The script can generate theARTISTtag from the list of artists provided by Genius by selecting the<Generated>option, or use the information provided by Genius as 'primaryArtistNames' or 'artistNames' (selecting<Genius Primary>or<Genius Artist>alternatively).GENREOrigin: You can select<Primary>if you only want to take the main value that Genius supplies or<All>to generate the information with all the values that the Web gives.
Formatting
We have two options regarding the format.
The first one corresponds to the character that we want the script to add at the end of each line of the song lyrics. This should not be a problem with the selection that is taken, since the players are compatible with all three options, but an option like the Linux one seems to take up less space than the one with Windows and is more 'friendly' ![]()
The second option is very important and refers to the way you want the multiple options for each tag to be treated. Let's say the song has three producers, Prod1, Prod2 and Prod3. Depending on the selection we would have:
Delimited: This selection creates a single tag and adds the producers separated by ';'. Resultant:
PRODUCER: Prod1;Prod2;Prod3
Multiple: This selection creates a tag for each option, so depending on the player it will be possible to search for titles by a specific producer. I have found players that when I ask for a list of producers they give me infinite lists because the producers are repeated according to their companions. El resultat serà:
PRODUCER: Prod1
PRODUCER: Prod2
PRODUCER: Prod3
Download
Genius#Lyrics.v0.41.zip (5.8 KB)
Last Modified: 2022-09-1
Genius#Lyrics.v0.52.zip (4.3 KB)
Mp3tag v3.22e REQUIRED ![]()
Last Modified: 2025-02-27
How to Install
- Download the
.zipand extract to%appdata%\mp3tag\data\sourcesdirectory (Just hit Win+R and copy paste%appdata%\mp3tag\data\sources) - You can access the scripts right-clicking on the title with mouse and
Tag sources->Genius->Lyrics...if using version 3.06 or above.
Script Info
Availables tags are: LYRICS,UNSYNCEDLYRICS
Additional tags are: TITLE, COVERURL, GENIUS_URL. They are here to show you more information about what Mp3tag has found. If you don't want them just remove # sign in "Customization" section in Genius#Lyrics.inc file.
COVERURL helps you ensure that the lyrics correspond to the song. If you don't want to add them just right click on the cover and disable.
If you need more information that my script does not supply or is incomplete please don't hesitate to contact me.
You can try it and make suggestions.
If you like the script don't forget to thank me with a Thank You in this post. Enjoy!
Version History
0.1: First Public Release
0.2: Added a new search option, additional tags.
0.21: Genius.com has modified one of the versions
0.22: Removed 'and' html codes from lyrics
0.30: Only one option available. The script proposes a fully qualified URL which you can change if it is not valid.
0.31: Added regular expressions to remove new ads from sources that breaks the lyrics
0.32: Bug fix. < div data-... >< /div > removed
0.40: Added JSON Web Source Script.
0.41: Bug fix: replaced 0x0d to 0x0a at the end of lines.
0.50.beta Added new tags: ARTIST, ALBUM, YEAR, GENRE, AUTHOR, PRODUCER, FEATURED, thanks to new framework introduced in 3.22e version.
0.51.beta Bugfix: Maybe an internal overflow due to a complex regular expression could cause a failure.




