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

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
Thanks sveakul. I have removed that line - what it effectively did was remove any whitespace in the <artist> and <title> (naturally, that should cause a lot of mismatches).

I see I did remove it sometime last year here (I must have had an old copy lurking around):
https://getmusicbee.com/forum/index.php?topic=36952.msg213186#msg213186

Nonetheless, it's fixed now - thanks.
Strength and Honour (2025)

sveakul

  • Hero Member
  • *****
  • Posts: 3262
Thanks Mayibongwe for responding.  Tonight I did notice one case though in which a track was found by the YML that DOES contain line 9 was NOT found by the one with it removed--the "Gotchas!" of life again, haha..  I don't sweat it, I just kept in both yml's with the least prolific one towards the end of the list.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
the "Gotchas!" of life again, haha..  I don't sweat it, I just kept in both yml's with the least prolific one towards the end of the list.
Keeping both seems the best way forward for sure. Do you by any chance recall what song that was for?
I can take one more jab at it in case we can get the best of both worlds in one yml.
Strength and Honour (2025)

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
For those who like to live dangerously, this non-included source's YML still works and can be downloaded here (click on the "Download raw file" button):
By having Museexmatch and Bing as sources, one doesn't even have to risk it.
Dumping this source and going straight for the big guy felt like a "I wanna talk to your supervisor" moment.
Strength and Honour (2025)

lucid

  • Newbie
  • *
  • Posts: 1
Looks like Genius is broken again?  :'(

Code
24/01/2025 01:53:23 [INFO] mb_LyricsReloaded in version 1.2.6.0 started!
24/01/2025 01:53:23 [DEBUG] Loading config from default provider_genius
24/01/2025 01:53:23 [INFO] Provider loaded: Genius
24/01/2025 01:53:23 [DEBUG] Loading config from default provider_bing
24/01/2025 01:53:23 [INFO] Provider loaded: Bing
24/01/2025 01:53:23 [DEBUG] Loading config from default provider_letras
24/01/2025 01:53:23 [INFO] Provider loaded: Letras
24/01/2025 01:53:23 [DEBUG] Loading config from default provider_genius_fuzzy
24/01/2025 01:53:23 [INFO] Provider loaded: Genius (fuzzy)
24/01/2025 01:53:23 [DEBUG] Received a notification of type PluginStartup
24/01/2025 01:53:23 [DEBUG] Received a notification of type MusicBeeStarted

24/01/2025 01:54:12 [DEBUG] Lyrics request: Radiohead - Everything In Its Right Place - Kid A - Genius

24/01/2025 01:54:12 [DEBUG] Lyrics request: Radiohead - Everything In Its Right Place - Kid A - Genius (fuzzy)
24/01/2025 01:54:12 [INFO] Genius (fuzzy) tries to load the lyrics...
24/01/2025 01:54:12 [DEBUG] The constructed identity URL: https://www.google.com/search?q=Genius+everything in its right place+radiohead
24/01/2025 01:54:12 [INFO] Genius tries to load the lyrics...
24/01/2025 01:54:12 [DEBUG] The constructed URL: https://genius.com/radiohead-everything-in-its-right-place-lyrics
24/01/2025 01:54:13 [WARN] The identity pattern (?<identity>https://genius.com.*?-lyrics) didn't match!
24/01/2025 01:54:13 [FAIL] no lyrics found from Genius (fuzzy)
24/01/2025 01:54:15 [WARN] The pattern <div data-lyrics-container="true" class="Lyrics-sc-1bcc94c6-1.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-c3476ba7-0.*?"> didn't match!
24/01/2025 01:54:15 [FAIL] no lyrics found from Genius

Naireem

  • Newbie
  • *
  • Posts: 6
Updated pattern for Genius
Code
pattern: ['<div data-lyrics-container="true" class="Lyrics-sc-.*?\-\d.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-.*?\-\d.*?">', 's']

sveakul

  • Hero Member
  • *****
  • Posts: 3262
Looks like Genius is broken again?  :'(
Built-in Genius confirmed broken here.  Beenius is fine.  Genius via modified AIMP plugin and via ESLyric for Foobar are still fine.

sveakul

  • Hero Member
  • *****
  • Posts: 3262
Updated pattern for Genius
Code
pattern: ['<div data-lyrics-container="true" class="Lyrics-sc-.*?\-\d.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-.*?\-\d.*?">', 's']
Do you have the code that is used by the dll's built-in Genius (NOT "fuzzy") so we can confirm this as a yml?

sveakul

  • Hero Member
  • *****
  • Posts: 3262
I was able to locate the Genius yml scripts from earlier posts and have applied the Naireem fix.  Now they are working normally again.  The first one ("Genius headers 1") returns the lyrics including any bracketed "section" text that may have been included;  the second one ("Genius headers 2") strips any section headers that were included.  Both of these are the regular, NOT the "fuzzy" versions.

Paste one or both of these as *.yml files into your "providers" folder.  Uncheck the built-in Genius entries from the providers list in Tags(2), check these instead, and you'll be back in business until Mayibongwe can correct the ones in his DLL.  Thanks again to Naireem.

Code
name: Genius headers 1

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-sc-.*?\-\d.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-.*?\-\d.*?">', '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']
- [regex, '\[(\[)',"$1", 's']
- trim

Code
name: Genius headers 2
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-sc-.*?\-\d.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-.*?\-\d.*?">', '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, '\[.{1,75}\]', ""]
- [regex, '\n{2,}',"\n\n", 's']
- trim

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10266
@Mayibongwe...

A really oddball situation here. I've been installing and uninstalling BoringName's DLNA/UPNP plugin. Every time I install it, it changes the source location of the Lyrics Reloaded plugin from top to bottom. It doesn't matter if I use the "Add Plugin..." button from the Plugins tab, or if I drag the dll from the ZIP to the plugin directory.

BoringName says there's nothing in his code to interact with other plugins and doesn't even think it's possible.

I'm at a loss as I haven't seen that happen with any other plugin. Tomorrow I'll install a new one and see what happens.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
A really oddball situation here. I've been installing and uninstalling BoringName's DLNA/UPNP plugin. Every time I install it, it changes the source location of the Lyrics Reloaded plugin from top to bottom. It doesn't matter if I use the "Add Plugin..." button from the Plugins tab, or if I drag the dll from the ZIP to the plugin directory.

Are you referring to this dropdown changing from Top to bottom?


I couldn't recreate the issue.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10266
Are you referring to this dropdown changing from Top to bottom?

I couldn't recreate the issue.
Yes, that's the dropdown. And while it seems highly unlikely that one plugin can talk to another, that's what my eyes are telling me.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
Yes, that's the dropdown. And while it seems highly unlikely that one plugin can talk to another, that's what my eyes are telling me.
Sounds highly unlikely indeed. But I will install the UPnP plugin later on to try it out myself.
During your tests, can you monitor the actual settings file in ...AppData\mb_LyricsReloaded\... to see if the contents over there are changing too?

I may experience a power outage in the next 5mins or so. If that happens, I'll then log back on tomorrow to look at everything I've missed on the forum the past week or so.
Thanks for looking at the Genius config, Lucid, Naireem and sveakul. I'll sort that out.

Edit:
Seems like my neighborhood dodged the power outage. But still though, I will end up playing around with the investigation tomorrow.
Also worth checking out on your side: Does it also happen when the position is inverted?
(when starting out with "bottom" selected, does it flip it to "top" upon installation of the UPNP plugin?)
Last Edit: January 31, 2025, 05:17:46 PM by Mayibongwe
Strength and Honour (2025)

catalonia

  • Jr. Member
  • **
  • Posts: 64
I would also like to know if the google provider is working for you, so far it is not working for me.

catalonia

  • Jr. Member
  • **
  • Posts: 64
could someone help me to remove the letters from the page https://lyrics.lyricfind.com/ thanks for everything!