slonopot / Museexmatch

Musixmatch lyrics provider for MusicBee.
24 stars 0 forks source link

New MusicBee plugin for LRCLIB's API search? #5

Closed sveakul closed 2 months ago

sveakul commented 3 months ago

Hi slonopot, any chance of creating a lyric searcher for LRCLIB.net? It has an open-source public API with details here: https://lrclib.net/docs.

A chap at the AIMP player forum recently wrote and posted one for that player's lyrics searcher script structure and man it is FAST and gets an amazing amount of hits. He found it had both static and synchronized DB abilities so wrote separate ones for both. I'll bet you could combine them in one and make formats option-selectable like you did with Museexmatch.

I know you have the chops to handle this after Museexmatch and Beenius, could you please consider giving it a try? Thanks!!

slonopot commented 3 months ago

I'll take a look and build it some time in the upcoming days/week. Latest MusicBee versions also provide access to the files themselves and it allows the plugins to pull unaltered metadata, maybe it'll be of some use.

sveakul commented 3 months ago

Thanks a lot!! Please include the ability to function with radio streams, and toggle the fixed vs. synced versions like you did so well with Museexmatch. As I mentioned in my previous post, it produces stream hits in a volume similar to Genius on AIMP when I added the user's posted script to their searcher. Floored me. Looking forward to hearing from you.

slonopot commented 3 months ago

Yes, sure, if the plugin won't be able to get the file info, the received track title, artist and album will be used. Synced or not will also be configurable, that comes by default. As for hits, the service is using external providers as well, I believe it pulls info from more services than Genius and Musixmatch and maybe it'll be able to get more hits, we'll see when it's done

sveakul commented 3 months ago

Yes, sure, if the plugin won't be able to get the file info, the received track title, artist and album will be used.

At the risk of sounding like a "pest", please give the ability to NOT use "album" in the case of streams, as in your Museexmatch. This all sounds great, talk about a power enhancement to MusicBee's lyrics abilities! Thanks again for taking time to do this.

slonopot commented 3 months ago

As per API reference, there are two lookup options. The first one requires track title, artist, album and duration to be supplied for a match to be found, this will probably be used if a file is present. The second one is just a plain search, like in Musixmatch or Genius, this might become a default option for streams. I'll try to test it with streams so please share any that you use

I'm now also thinking I should move away from configuration files and folder requirements, there's a chance I'll figure this out first try and it will be available in LRCLIB plugin first and in the others later, we'll also see how will it go.

sveakul commented 3 months ago

Some HQ streams that always send track title/artist metadata are the SomaFM group, which includes stations like: http://ice1.somafm.com/poptron-128-aac http://ice1.somafm.com/indiepop-128-aac http://ice1.somafm.com/u80s-256-mp3

Also stations like: https://0n-gothic.radionetz.de/0n-gothic.mp3 http://meralunafm.radionetz.de:8000/meralunafm.mp3 http://23.29.71.154:8226/stream