Closed whatphilipcodes closed 1 month ago
break if the artist is empty (bandcamp search can't handle ' - title' syntax in search)
Could you explain how does it break? Is there an exception thrown or it simply doesn't find the title you are looking for?
The code works fine however, if the artist field is empty the query sent to bandcamp looks like this: ' - track title'. This won't return any results even if the track is present on bandcamp probably because their search assumes the title of the track to contain the dash if nothing is in front of it.
The code works fine however, if the artist field is empty the query sent to bandcamp looks like this: ' - track title'. This won't return any results even if the track is present on bandcamp probably because their search assumes the title of the track to contain the dash if nothing is in front of it.
This makes sense, thank you! Not ideal indeed. Regarding the change, see the comments I added the other day 🙂
Yes I saw them but did not have the time then to get to it right away. Should be all included now :)
Just found that my alterations to the search (#68) break if the artist is empty (bandcamp search can't handle ' - title' syntax in search). This fixes the issue. I did not include a changelog entry as this feature has not been released yet and is already present in the log.