# \[WS\] Genius (Lyrics)

**URL:** <https://community.mp3tag.de/t/ws-genius-lyrics/52933>\
**Category:** Web Sources Scripts\
**Created:** [April 22, 2021, 10:03am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933 "2021-04-22T10:03:55Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![random123](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ec9cab/32.png) [@random123](https://community.mp3tag.de/u/random123)\
**Post date:** [November 16, 2021, 11:29pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/22 "2021-11-16T23:29:59Z")

</div>

Confirmed! Thanks, those cases do not show up now.

---

<div class="post-metadata">

**Author:** ![albiek1976](https://community.mp3tag.de/user_avatar/community.mp3tag.de/albiek1976/32/12313_2.png) [@albiek1976](https://community.mp3tag.de/u/albiek1976)\
**Post date:** [November 28, 2021, 6:39pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/23 "2021-11-28T18:39:46Z")

</div>

I'd like to request a feature, if I copy and pasted the whole genius url with track [EXAMPLE: [https://genius.com/Akon-i-wont-remix-lyrics](https://genius.com/Akon-i-wont-remix-lyrics)] that the window would read and convert to Akon-i-wont-remix-lyrics when next is pressed instead of a genius 404: not found error

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [November 28, 2021, 8:06pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/24 "2021-11-28T20:06:15Z")

</div>

Hi @albiek1976 I'm working on it. I've tryed to implement this feature before but without success. I'll let you know if I get it

---

<div class="post-metadata">

**Author:** ![albiek1976](https://community.mp3tag.de/user_avatar/community.mp3tag.de/albiek1976/32/12313_2.png) [@albiek1976](https://community.mp3tag.de/u/albiek1976)\
**Post date:** [November 28, 2021, 8:18pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/25 "2021-11-28T20:18:32Z")

</div>

Thanks and Thank-you for making this available!!

---

<div class="post-metadata">

**Author:** ![TheLegend](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@TheLegend](https://community.mp3tag.de/u/TheLegend)\
**Post date:** [December 9, 2021, 2:17am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/27 "2021-12-09T02:17:24Z")

</div>

AutoHotKey script has stopped working if I am correct. Looks like Genius changed their website design and possibly other thongs as well. Would be great if you could look into it. Your work has been appreciated.

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [December 14, 2021, 9:43am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/28 "2021-12-14T09:43:06Z")

</div>

Maybe the problem is the changes in my Genius Tag Source script. Communication between Mp3tag and Genius is working fine. I'm not using AutoHotKey, so I can't help you.

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [April 18, 2022, 2:28pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/29 "2022-04-18T14:28:49Z")

</div>

@bugzero i want to bring to your attention that the script no longer functions properly, im thinking the issue has to do with this line

```auto
regexpreplace "<div [\w\s\-\"=]+?Lyrics__Container[^>]+?>(.+?)<\s*\/div\s*>" "<lyrics:start>$1<lyrics:end>"

```

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [April 19, 2022, 7:51am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/30 "2022-04-19T07:51:10Z")

</div>

@Ouargui I think it is repaired now. New ads were added to lyrics body. Now I think they will be removed.

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [April 22, 2022, 8:44pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/31 "2022-04-22T20:44:53Z")

</div>

it happened again, yet another change

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [April 25, 2022, 6:50am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/32 "2022-04-25T06:50:37Z")

</div>

Yes, you are right. I fixed it and checked in some lyrics.  
😅

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [April 25, 2022, 1:36pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/33 "2022-04-25T13:36:53Z")

</div>

thank you so much, it's trouble how many times they keep adding stuff so thank you for your efforts 😄

---

<div class="post-metadata">

**Author:** ![andrewb0922](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@andrewb0922](https://community.mp3tag.de/u/andrewb0922)\
**Post date:** [July 14, 2022, 3:32am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/34 "2022-07-14T03:32:26Z")

</div>

First of all, thank you so much for making this script. It's been so useful to me. Recently, I've encountered some errors using this. Some of the lyrics gets skipped (ex. Verse 2). I suspect it has to do with the longevity of the lyrics cuz most of the songs that had the problem had long lyrics but I'm not entirely sure. I would be grateful if you could look into this

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [July 19, 2022, 8:54am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/35 "2022-07-19T08:54:59Z")

</div>

Hello @andrewb0922, the lyrics length should not be a problem. Maybe the ads use a different code structure that I'm not cleaning well. I've tryed the script on three new themes an cannot find any problem. Could you supply me a song with the problem you describe. I will try to fix it.

---

<div class="post-metadata">

**Author:** ![Ouargui](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/o/f17d59/32.png) [@Ouargui](https://community.mp3tag.de/u/Ouargui)\
**Post date:** [July 19, 2022, 8:59am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/36 "2022-07-19T08:59:34Z")

</div>

i had the same problem with songs like Purity by A$AP Rocky, it skipped verse 2, but strangely enough other songs are completely fine.

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [July 19, 2022, 9:55am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/37 "2022-07-19T09:55:21Z")

</div>

Thanks @Ouargui and @andrewb0922  
Finally I've seen the problem! It's an HTML failure. The page source has an error.  
Normally lyrics can be extracted from html code or from a json structure supplied in the same code.  
I usually extract them from html code, but I will have to change it to json.  
Maybe in a few days I will be ready to publish a new version.  
Stay tuned

---

<div class="post-metadata">

**Author:** ![andrewb0922](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@andrewb0922](https://community.mp3tag.de/u/andrewb0922)\
**Post date:** [July 19, 2022, 9:58am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/38 "2022-07-19T09:58:31Z")

</div>

Oh thank you so much. Much appreciated.  
I wonder why verse 2 seems to be the problem most of the time

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [August 31, 2022, 4:16pm UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/39 "2022-08-31T16:16:32Z")

</div>

Finally I have had time to start developping the Genius JSON Web Source Script.

My current web script works on clean lyrics, but the one you have proposed me is very difficult because it is full of garbage. Maybe the person who created that lyrics wasn't careful enough writing it. I will try to create some regular expressions to clean it and maybe it will be of use in other lyrics, but I don't want to break the simple and clean ones.

I will post the new Web Source when I finish it and I will ask you to test it.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [September 1, 2022, 5:27am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/40 "2022-09-01T05:27:12Z")

</div>

Suggestion:  
I like my embedded lyrics a little bit more formated like the lyrics are displayed on the Website.  
Your scripts erase all paragraphs while cleaning so that the text has no fixed points for the eye.

Why don't you leave the original format on Genius like it is?

---

<div class="post-metadata">

**Author:** ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)\
**Post date:** [September 1, 2022, 9:02am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/41 "2022-09-01T09:02:17Z")

</div>

Hi @poster. You are right, in JSON version I've replaced the '\n' (LF, 0x0A, line feed) which is in lyrics to its unicode character code '\u000a'. This code is the standard in linux systems, even in music players. Windows needs two bytes to display the lines correctly '\r\n' (CR+LF, 0x0D+0x0A, carry return+line feed) and so mp3tag does.  
It is easy to replace it but this increases the size of lyrics in file.  
Maybe we can suggest @Florian to implement this in a 'lyrics viewer'.  
You can also modify it in "Genius#LyricsJSON.inc" file, open it with Notepad++ and in line 107 replace:

**_replace "\\n" "\u000a"_**

with:

_ **replace "\\n" "\u000d\u000a"** _

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [September 1, 2022, 11:34am UTC](https://community.mp3tag.de/t/ws-genius-lyrics/52933/42 "2022-09-01T11:34:55Z")

</div>

@bugzero  
Sorry, the problem was in front of the minitor. 😉  
I just tested with a file that already had UNSYNCEDLYRICS filled with unformatted content and I did not realize that the content was not replaced but instead of this LYRICS was created.

[Previous page](https://community.mp3tag.de/t/ws-genius-lyrics/52933.md?page=1)

[Next page](https://community.mp3tag.de/t/ws-genius-lyrics/52933.md?page=3)
