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

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 742
Playing with the Bandcamp YML again, I found some info that may be worth a re-write of the whole thing:
a search statement that will bring you to the track REGARDLESS of the bandcamp root URL construction beling used now for the band name.
Wow! Can't believe the whole effing thing worked on a first try.
If I knew that the suggested search technique wouldn't even take 5mins to get it going, I would have had a look midweek - but...better late than never I guess.
Let me know if it needs more tweaking.

Code
name: Bandcamp
loader: search

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

config:
    identity url: "https://bandcamp.com/search?q={artist}%20{title}&item_type=t"
    identity pattern: ['class="artcont" href="(?<identity>https://.*?)\?', 's']
    lyrics url: ""
    lyrics pattern: ['<meta.*?\d{4}.*?(?<lyrics>\w.*?)">', 's']

post-filters:
- utf8_encode
- entity_decode

sveakul

  • Sr. Member
  • ****
  • Posts: 2274
Thanks Mayibongwe!  I did some short testing on this re-done YML, and have found after about an hour bouncing around between radio streams that:

A.  As posted, it DOES work and return results

B.  After getting 15 hits on Bandcamp with both YML#1 (your first version but including my mods to the Variables section as I posted before) and YML#2 (the new one as-is) active, I found that:

1.  8 hits were only found with YML#2
2.  2 hits were only found with YML#1
3.  5 hits were found by both the old and new YMLs
4.  Of the 15 total hits from Bandcamp, 8 ONLY were found from the Bandcamp YMLs, not any of the "usual suspects" (Genius, Musixmatch, Beenius, etc.) that I always have checked on my provider list.

I would conclude that for searching Bandcamp, the YML#2 is a significant improvement over the old one.  The two it missed but #1 found seemed to be cases of where out of 3-4 results returned by the initial web search, they were obfuscated by the credits at the site adding different artists to the first one in cases of collaborations, etc.  You just can't expect to compensate for ALL variants with tools like this.

I would recommend that everyone add Bandcamp YML#2 to their search options;  Bandcamp has many new Indie releases it takes a while for the other lyrics sites to pick up, as well as a lot of "darker style" stuff.  Of course it doesn't hurt to add the first one (with Variables mod) too in the spirit of the "fuzzy" versions of others already offered by the plugin.  

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 742
The two it missed but #1 found seemed to be cases of where out of 3-4 results returned by the initial web search,
they were obfuscated by the credits at the site adding different artists to the first one in cases of collaborations, etc.
I'm not able to picture what's described above, especially the details of line 2.
Do you perhaps have another example link that I could take a look at?

I've added the second Bandcamp YML to the optional providers list.
Thanks for yet another additional provider sveakul.

sveakul

  • Sr. Member
  • ****
  • Posts: 2274
The two it missed but #1 found seemed to be cases of where out of 3-4 results returned by the initial web search,
they were obfuscated by the credits at the site adding different artists to the first one in cases of collaborations, etc.
I'm not able to picture what's described above, especially the details of line 2.
Do you perhaps have another example link that I could take a look at?
Here is a related example that hopefully touches several bases as far as code and I didn't encounter it before:  both #1 and #2 return lyrics to the track, but #2 returned lyrics to the wrong song.

Song was "Souvenirs" by "The Gathering."  #2 from the log made the identity search out as:
https://bandcamp.com/search?q=the gathering%20souvenirs&item_type=t

That search returned 14 hits on the Bandcamp website.  The very first result was chosen for display, which was the song listed as "'The Gathering of Fools,' from Souvenirs by Rainbow Danger Club"--of course the wrong song.

Other hits from the 14 indicate confusion due to the fact that the real band also put out an album with the same name as the desired track, e.g. the listing "Broken Glass, from Souvenirs by The Gathering."

Another was like the first in the list, the wrong song with a tricky description: "Souvenirs, by Amoenus from Cycling Colours, a tribute to The Gathering Vol.6 by V.A."

The correct track was one of the 14, but apparently when confused by the multiple returns to the search it just picks the first one on the list.

NOTE: I also noticed for the first time that the artist part of the search query was constructed with a space, as "the gathering"  Changing that to "thegathering" made the results drop 3 blatantly wrong returns (wrong band like the above example) but still come back with 11 tracks that were from the correct band but from the ALBUM Souvenirs.

#1 YML was able to nail the correct return immediately, because in THIS case its URL "fixed artist-track" construction was a benefit rather than a liability, as only one hit would fit that bill: https://thegathering.bandcamp.com/track/souvenirs.

I guess the success of #2 YML in dealing with multiple results for the same search depends on whatever ability may be added to switch to the method of #1 YML when parsing those results.

My brain is a bit fried now so that's all the lyrics analyses for one day.  YML#2 is still worth adding as-is even if it has to stay the same for now;  thank YOU Mayibongwe for the code to begin with.

Gendji

  • Jr. Member
  • **
  • Posts: 98
Not sure if i should ask my question here, if not just let me know.

Should synced lyrics also work with radio stations? The lyrics themselves are found and shown, but they do not move like when playing a music file?.

One a side-note, in case i haven't said it already, the plug-in works great, thanks!.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 742
My brain is a bit fried now so that's all the lyrics analyses for one day.
I appreciate the effort invested.
For now, I've only made the change to the artist variable where whitespaces are removed.

The two it missed but #1 found seemed to be cases of where out of 3-4 results returned by the initial web search,
they were obfuscated by the credits at the site adding different artists to the first one in cases of collaborations, etc.
Hopefully, there won't be a lot of these popping up.
But if they do in numbers, I guess we'll have to pick this up again and see if anything else can be done to improve the accuracy. Cheers!

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 742
Not sure if i should ask my question here, if not just let me know.
Should synced lyrics also work with radio stations? The lyrics themselves are found and shown, but they do not move like when playing a music file?.
Not sure yet either. But, before we trouble the rest of the forum with the question, let's see if we can deal with it here.
Can you post a screenshot of the lyrics tab in the Tag Editor after those synced lyrics have been found? And which provider are they from?

Gendji

  • Jr. Member
  • **
  • Posts: 98
Not sure if i should ask my question here, if not just let me know.
Should synced lyrics also work with radio stations? The lyrics themselves are found and shown, but they do not move like when playing a music file?.
Not sure yet either. But, before we trouble the rest of the forum with the question, let's see if we can deal with it here.
Can you post a screenshot of the lyrics tab in the Tag Editor after those synced lyrics have been found? And which provider are they from?

Yes i will try and post the result later this evening (i hope  :) )

Gendji

  • Jr. Member
  • **
  • Posts: 98


I do not know how to use the Tag Editor in regard to a Radio Station?.

I made a screenshot of the lyrics tab. As you can see the synced lyrics are found but are not moving. The options to edit, embed or paste are greyed out, which makes sense in a way because there is no music file to work with. Hope that's what you wanted to see.
Last Edit: June 17, 2023, 07:57:54 PM by Gendji

sveakul

  • Sr. Member
  • ****
  • Posts: 2274
Gendji:  there is no way to do this with radio stations.  Fixed files have fixed timing, etc. while Internet latency bounces around all the time to say nothing of any DSP being applied by the station.  If you add the Netease Lyrics plugin and the Desktop Lyrics plugin the latter will make an attempt to apply movement from stream hits on the Netease cloud but they end up hopelessly messed up.

Gendji

  • Jr. Member
  • **
  • Posts: 98
Gendji:  there is no way to do this with radio stations.  Fixed files have fixed timing, etc. while Internet latency bounces around all the time to say nothing of any DSP being applied by the station.  If you add the Netease Lyrics plugin and the Desktop Lyrics plugin the latter will make an attempt to apply movement from stream hits on the Netease cloud but they end up hopelessly messed up.

Ah ok, makes sense then that it doesn't work.

I tested it yesterday also with the Mini Lyrics plug-in before your answer and it behaved just like you describe.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 742
I was notified of a post on email earlier today that I'd planned to reply to later in the day.
But looking now, I can't see anything - could the poster have deleted it?
hmm...looks like it has happened again.


hiccup

  • Sr. Member
  • ****
  • Posts: 7299
hmm...looks like it has happened again.
Looks like a spam post that has been removed?

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 8929
Looks like a spam post that has been removed?
That's correct. It was a reply by a first time poster. The reply contained spam links and spam signature. Deleted and banned.
Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 742
Noted.

FWIW, I did get a look at the mentioned RC Lyrics Band and saw a fair number of synchronized lyrics over there.
The site has now been added to the optional providers zip.