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

hiccup

  • Hero Member
  • *****
  • Posts: 8036
In the future, when I'm able to afford more time to myself once again, I will look into completing the API search technique that was originally planned for this plugin.
For as far that effort would pertain to getting this specific website to work, I am wondering about its legality.
The more known lyrics providers have some financial deals with the legal owners of lyrics, and therefor they can stay in business.
I'm not sure if this one has, and will be able to stick around for a longer time.

sveakul

  • Hero Member
  • *****
  • Posts: 2564
The Musixmatch choice needs to be removed from the 1.2.09 version if a fix is not possible.

I would direct those who want to maintain search access to that database to the Museexmatch plugin downloadable from the MusicBee plugins page.  After install it's just another choice in prefs/tags(2)/Lyrics/lyric providers, as if it is part of the LyricsReloaded plugin (which it is not).  The install instructions must be followed carefully.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
I assume that "no news is bad news" as far as fixing the Musixmatch script?
I briefly worked on it last weekend and there was some progress.
I just haven't had much leisure time in recent weeks to wrap it up.

And admittedly, Musixmatch did pull a number on their recent structural changes as I'm almost through an entire rerwrite of the search pattern.
I haven't had to do this for any of the other providers since I started with these.

But I'm extremely occupied this weekend as well, so will probably upload a fix sometime next week as I'm taking a couple of weeks' leave then.
The source code to any of my contributions is available on the same download link as the add-ons

funcat

  • Newbie
  • *
  • Posts: 3
Any one tried to implement https://lrclib.net/. It has bettet sync lyric database than musicmatch.
Hi all, I am also looking for synced lyrics MB plugin and tried to find technical info for "lrclib" (great database source)
I can help test if some assistance neeed.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
I assume that "no news is bad news" as far as fixing the Musixmatch script?
I briefly worked on it last weekend and there was some progress.
I just haven't had much leisure time in recent weeks to wrap it up.
With today's motivation from the Museexmatch thread, I've managed to finalize the above.
Will release a new plugin version with the fix tomorrow morning. Haven't thoroughly tested it out though, but this appears stable enough:

Code
name: Musixmatch (fuzzy)
loader: search

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

config:
    identity url: "https://www.google.com/search?q=Musixmatch+{title}+{artist}"
    identity pattern: ['(?<identity>https://www.musixmatch.com.*?)%3Futm_|(?<identity>https://www.musixmatch.com.*?)["&]', 's']
    lyrics url: ""
    lyrics pattern: ['(?<lyrics>.*)', 's']

post-filters:
- strip_html
- utf8_encode
- entity_decode
- [regex, 'Add to favorites.*?lyricsAICountGet', '@@']
- [regex, ',"canEdit":false.*', '']
- [regex, '.*(\n+)?@@', '@@']
- [regex, '.*[{};=/]', '@@']
- [regex, '\n@@', '<br>']
- [regex, '          |              |        |    ', '<br>']
- [regex, '@@\n(@@)?', '<br>']
- [regex, "@@'gtm.start':<br>d.getElementsByTagName\\(s\\)\\[0\\],<br><br><br><br><br><br><br>\n<br><br><br>\n<br><br>", '1']
- [regex, '<br><br><br>', '2']
- [regex, '2+<br><br>', '3']
- [regex, '<br>.nprogress-custom-parent #nprogress .spinner,3"body":"', '4']
- [regex, "1\\n2\\n3\\n4|\"", ""]
- [regex, '\\n', "\r\n"]
- [regex, '\\"', "\""]
- [regex, '1|2|4|<br>', ""]
- trim
The source code to any of my contributions is available on the same download link as the add-ons

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
Any one tried to implement https://lrclib.net/. It has bettet sync lyric database than musicmatch.
Hi all, I am also looking for synced lyrics MB plugin and tried to find technical info for "lrclib" (great database source)
I can help test if some assistance neeed.
It's going to be quite a while before that API-based database receives support on this plugin.
Check out Museexmatch - Musixmatch for MusicBee [+ synced] which is just as good, if not the better source.
The source code to any of my contributions is available on the same download link as the add-ons

sveakul

  • Hero Member
  • *****
  • Posts: 2564
Mayibongwe: I noticed that in version 1.2.0.9 of LR the source "lyricsovh.com" is listed--as that is not a website I'm assuming you mean "lyrics.ovh"?

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
Hey sveakul. Are you positive that's coming from Reloaded? I don't remember dealing with that site before.
The plugin built-in providers have only been Genius, Musixmatch and Deezer for quite some time now.
And I can't see that site/provider listed in the second post of this thread where I keep track of them.
The source code to any of my contributions is available on the same download link as the add-ons

sveakul

  • Hero Member
  • *****
  • Posts: 2564
Actually I don't know how long it's been there.  I updated to 1.2.0.9 of LR (late I know) and 1.4 of Museexmatch about the same time-- must be coming from the latter I guess, some component of the recent fix that was made there or I thought some of the tinkering you've been doing.  "Lyrics.ovh" is an open-source lyrics searching/API by the look of its github site.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
As for the Musixmatch provider, it is indeed tripping at the moment. I'll have to formulate a new search pattern.
I haven't had any luck with it so far. Will wrestle with it again later.
This has now been addressed in the newest version up for download.

"Lyrics.ovh" is an open-source lyrics searching/API by the look of its github site.
I also see a brief guide on how to query their API - interesting stuff. Thanks for the link.
I plan to play around these uncharted waters while I have the time.
The source code to any of my contributions is available on the same download link as the add-ons

sveakul

  • Hero Member
  • *****
  • Posts: 2564
Thanks for version 1.2.10!

Question:  I notice it contains both the "fuzzy" and "regular" entries for Musixmatch.  Are both of them recipients of the new revisions you made for that source?

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
Yes, both contain the fix!
On the 10 songs or so I've tested the revisions with, both seem to pull fine.
The source code to any of my contributions is available on the same download link as the add-ons

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1146
  • Heal The World
"Lyrics.ovh" is an open-source lyrics searching/API by the look of its github site.
The above source can now be used with this plugin too.
I will add the following to the optional providers .zip later on:
Code
name: Lyrics.ovh
loader: static

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

config:
    url: "https://api.lyrics.ovh/v1/{artist}/{title}"
    pattern: ['{"lyrics":"(?<lyrics>.*)"}', 's']

post-filters:
- strip_html
- utf8_encode
- entity_decode
- trim
- [regex, '\\n+', "\r\n"]

Any one tried to implement https://lrclib.net/. It has bettet sync lyric database than musicmatch.
Hi all, I am also looking for synced lyrics MB plugin and tried to find technical info for "lrclib" (great database source)
I can help test if some assistance neeed.
It's going to be quite a while before that API-based database receives support on this plugin.
Looks like I'm able to do something about this sooner rather than later. Will keep you posted.
The source code to any of my contributions is available on the same download link as the add-ons

sveakul

  • Hero Member
  • *****
  • Posts: 2564
Mayibongwe:  I just updated to MusicBee 3.6 a couple of days ago--I bet the mystery entry "lyricsovh.com" is a build-in by Steven to 3.6, just like "chartlyrics.com" has been there for years.

sveakul

  • Hero Member
  • *****
  • Posts: 2564
I went directly from LR 1.2.0.8 to 1.2.10 when it came out, and notice that sometimes it will hang and stay that way at the "Retrieving Lyrics.." stage instead of moving shortly to "Lyrics not found, " until a new song is played.  This is all with radio streams.   This doesn't seem to stop retrieval of lyrics when they actually exist based on cross-checks with other players, but nevertheless keeps one guessing.  I moved back to 1.2.0.8 and the "hang" behavior ceased.

My guess is that the extra cropping behavior that was added from1.2.0.9 to attempt removal of ticket ads may be causing this, as it's the only change made since 1.2.0.8.  Has anyone else noticed this?  It has caused me to stay now at 1.2.0.8, and while that means I lose the fixed built-in Musixmatch, the presence of the improved Museexmatch plugin obviates that.