Author Topic: LyricsReloaded (Latest)  (Read 127001 times)

catalonia

  • Jr. Member
  • **
  • Posts: 64
I have done different tests and I still prefer LyricsReloaded, I will wait for the version Genius and Genius (fuzzy) without brackets to test it.
for example this song

https://genius.com/Cpv-bonita-cancion-de-amor-capitulo-i-lyrics

found by LyricsReloaded and Beenius is not, and I haven't found the reason yet.

Bennius
| Debug | Beenius.GeniusClient.search | artist="El Club de los Poetas Violentos", title="Bonita canción de amor"
| Info | Beenius.GeniusClient.search | Let's check for aliases
| Info | Beenius.GeniusClient.search | No results for this search
| Info | Beenius.GeniusClient.getLyrics | Nothing found at all

Genius (fuzzy)
[DEBUG] Lyrics request: El Club de los Poetas Violentos - Bonita canción de amor - La saga continúa 24-7 - Genius (fuzzy)
[INFO] Genius (fuzzy) tries to load the lyrics...
[DEBUG] The constructed identity URL: https://www.google.com/search?q=Genius+bonita canción de amor+el club de los poetas violentos
[DEBUG] The constructed lyrics URL: https://genius.com/Cpv-bonita-cancion-de-amor-capitulo-i-lyrics
[SUCCESS] lyrics found from Genius (fuzzy)!
Last Edit: December 04, 2024, 09:40:04 AM by catalonia

sveakul

  • Hero Member
  • *****
  • Posts: 3262
You know, there are other powerful lyric plugins like LRCLIBee and Museexmatch that if selected may find this too, not to mention additional sources in Lyrics Reloaded.  To conclude that only one specific website will do is unusual.

As far as Beenius, I would also return the spacing option for special characters to normal.  Finally, waiting for Mayibongwe to create 4 custom YML files just for your use may not happen anytime soon, especially due to the precedent that creates for this busy developer, but that is up to him to decide.
Last Edit: December 04, 2024, 10:18:29 AM by sveakul

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
Here's that Genius config without the removal of the bracketed text. It wasn't no trouble at all, just had to remove this post-filter [regex, '\[.{1,75}\]', ""].
Go to ...AppData\mb_LyricsReloaded\Providers... and create empty text files, paste this code into each and ensure the filename has a .yml extension.

Code
name: Genius (fuzzy)
loader: search

variables:
    artist:
        type: artist
        filters:
        - lowercase
        
    title:
        type: title
        filters: artist

config:
    identity url: "https://www.google.com/search?q=Genius+{title}+{artist}"
    identity pattern: ['(?<identity>https://genius.com.*?-lyrics)', 's']
    lyrics url: ""
    lyrics pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-.*?">(?<lyrics>.*)<div class="LyricsFooter__Container.*?">', 's']

post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de &quot.*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim

Code
name: Genius

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
        - [regex, "'", ""]
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
        - [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "https://genius.com/{artist}-{title}-lyrics"
    pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-.*?">(?<lyrics>.*)<div class="LyricsFooter__Container.*?">', 's']

post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de &quot.*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim
Strength and Honour (2025)

catalonia

  • Jr. Member
  • **
  • Posts: 64
It was what I needed, thank you very much!! there is only one bug that for my little knowledge I can't solve it.
The one called Genius (fuzzy) works correctly.
The one called Genius duplicates a [

For example in this song:
https://genius.com/Cpv-y-ahora-ke-eh-lyrics

The first line should be:
[Intro: Mr. Rango]

And I get this:
[[Intro: Mr. Rango]

in the other lines it doesn't happen.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
The one called Genius duplicates a [
Can't see at a quick glance why it would do that.
You can patch it up by adding this under the post-filters section (preferably right at the end):

- [regex, '\[(\[)',"$1", 's']
Strength and Honour (2025)

catalonia

  • Jr. Member
  • **
  • Posts: 64
I had to add - [regex, '\[(\[)',"$1", 's'] it to the other one too because it also failed, now it works Genius Headers and Genius Headers (fuzzy)!

I make a summary in case someone wants to download them:

Test song:
https://genius.com/Cpv-y-ahora-ke-eh-lyrics

Genius
¡Y ahora qué! Conmigo tú no vas a poder...
¡Y ahora qué! Conmigo tú no puedes....
Y es que tu no puedes, tú no puedes...
Tú no puedes con Nafri tú no puedes

Genius Headers
[Intro: Mr. Rango]
¡Y ahora qué! Conmigo tú no vas a poder...
¡Y ahora qué! Conmigo tú no puedes....
Y es que tu no puedes, tú no puedes...
Tú no puedes con Nafri tú no puedes

Beenius
[Letra de "¡Y Ahora Ke, Eh!"]

[Intro: Mr. Rango]
¡Y ahora qué! Conmigo tú no vas a poder...
¡Y ahora qué! Conmigo tú no puedes....
Y es que tu no puedes, tú no puedes...
Tú no puedes con Nafri tú no puedes
Last Edit: December 05, 2024, 10:04:28 AM by catalonia

sveakul

  • Hero Member
  • *****
  • Posts: 3262
The one called Genius duplicates a [
Can't see at a quick glance why it would do that.
You can patch it up by adding this under the post-filters section (preferably right at the end):

- [regex, '\[(\[)',"$1", 's']
Mayibongwe, your willing and friendly and fast responses to almost any user requests  deserves a shout-out and a big thank-you from all, as does our VUMeter coder BoringName.  By comparison,  I am still trying to convince the author of the otherwise exceptional ESLyric plugin (Foobar) that providing an option to start lyric text display at the beginning of, instead of half-way down, the panel is a good idea--go figure (https://hydrogenaud.io/index.php/topic,122571.msg1055375.html#msg1055375)

catalonia

  • Jr. Member
  • **
  • Posts: 64
Many thanks for the attention in the requests. As you say it rarely happens with other apps.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
haha, thanks sveakul, and catalonia.
Across the river, it honestly sounds like a misunderstanding at this stage.
Hopefully, your elaboration with reference to written material will clarify things (that bit was funny to me).
Strength and Honour (2025)

catalonia

  • Jr. Member
  • **
  • Posts: 64
I forgot to copy them with the error corrected by their creator, I have renamed them so that you can have the Genius and Genius (fuzzy) originals:

Genius Headers (fuzzy).yml
Code
name: Genius Headers (fuzzy)
loader: search

variables:
    artist:
        type: artist
        filters:
        - lowercase
        
    title:
        type: title
        filters: artist

config:
    identity url: "https://www.google.com/search?q=Genius+{title}+{artist}"
    identity pattern: ['(?<identity>https://genius.com.*?-lyrics)', 's']
    lyrics url: ""
    lyrics pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-.*?">(?<lyrics>.*)<div class="LyricsFooter__Container.*?">', 's']

post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de &quot.*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- [regex, '\[(\[)',"$1", 's']
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim

Genius Headers.yml
Code
name: Genius Headers

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
        - [regex, "'", ""]
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
        - [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "https://genius.com/{artist}-{title}-lyrics"
    pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-.*?">(?<lyrics>.*)<div class="LyricsFooter__Container.*?">', 's']

post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de &quot.*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- [regex, '\[(\[)',"$1", 's']
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim

catalonia

  • Jr. Member
  • **
  • Posts: 64
the plug-in is not working for me at the moment, it's strange.

sveakul

  • Hero Member
  • *****
  • Posts: 3262
the plug-in is not working for me at the moment, it's strange.
"Not working" in what way?  All sources, or just Genius (and if so which one)?

catalonia

  • Jr. Member
  • **
  • Posts: 64
none of them work Genius, you can test me if it also happens to you.

sveakul

  • Hero Member
  • *****
  • Posts: 3262
Yes I confirm it, none of the LR Genius scripts are now getting lyrics from the site.  What IS working though is Beenius.

FYI, AIMP's Genius script is not working either, nor is Foobar's OpenLyrics.  However, the script used by Foobar's ESLyric IS getting lyrics from Genius.

Mayibongwe, can you make it right?

Naireem

  • Newbie
  • *
  • Posts: 6
It's now
Code
pattern: ['<div data-lyrics-container="true" class="Lyrics-sc-1bcc94c6-1.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-c3476ba7-0.*?">', 's']

Works fine now!

Here's that Genius config without the removal of the bracketed text. It wasn't no trouble at all, just had to remove this post-filter [regex, '\[.{1,75}\]', ""].
Go to ...AppData\mb_LyricsReloaded\Providers... and create empty text files, paste this code into each and ensure the filename has a .yml extension.

Code
name: Genius (fuzzy)
loader: search

variables:
    artist:
        type: artist
        filters:
        - lowercase
       
    title:
        type: title
        filters: artist

config:
    identity url: "https://www.google.com/search?q=Genius+{title}+{artist}"
    identity pattern: ['(?<identity>https://genius.com.*?-lyrics)', 's']
    lyrics url: ""
    lyrics pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-.*?">(?<lyrics>.*)<div class="LyricsFooter__Container.*?">', 's']

post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de &quot.*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim

Code
name: Genius

variables:
    artist:
        type: artist
        filters:
        - strip_diacritics
        - lowercase
        - [replace, "!!!", "chk-chik-chick"]
        - [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
        - [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
        - [regex, "'", ""]
        - [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
        - [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
        - [strip_nonascii, -]
    title:
        type: title
        filters: artist

config:
    url: "https://genius.com/{artist}-{title}-lyrics"
    pattern: ['<div data-lyrics-container="true" class="Lyrics__Container-sc-1ynbvzw-.*?">(?<lyrics>.*)<div class="LyricsFooter__Container.*?">', 's']

post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de &quot.*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- trim