The two it missed but #1 found seemed to be cases of where out of 3-4 results returned by the initial web search,I'm not able to picture what's described above, especially the details of line 2.
they were obfuscated by the credits at the site adding different artists to the first one in cases of collaborations, etc.
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
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.