Closed rigrig closed 3 years ago
Hi, sorry for not noticing the issue sooner. Also thank you for such a detailed bug report, that's something one does not usually see. :)
(I'm hoping it's just a matter of "Ah-hah, there is a missing check for unexpected empty results at line such-and-so")
Yes, you are absolutely right. The API just didn't return any results in that case and I naively didn't check for such state in the code. Anyway, as you can see I have fixed the error handling and it should work now. I also fixed sending listenings in such case, because the listens were rejected as they had an invalid MBID.
Feel free to reopen the issue if anything occurs in regards to this.
Thanks for fixing it (and creating this plugin in the first place)! No need to apologize for how you spend your time, and fixing bugs within a week is actually quite fast.
Jellyfin started restarting after every song from a particular album, it looks like the Listenbrainz plugin crashes when trying to look up songs which are tagged with a MusicBrainz ID which no longer exists. It was playing song tagged with this (deleted) release group: https://musicbrainz.org/edit/70120662 I'm not sure if the individual tracks also pointed at deleted track IDs, or whether those still existed. Retagging my files with identifiers from a existing release fixed it.
Jellyfin Version: 10.7.5 Plugin version: 1.1.0.0 Operating System: Linux (docker on Synology NAS) Architecture: X64
What looks like the relevant part of my Docker log:
Reproducing it right now will be a bit involved, as all the tags are fixed and it no longer crashes. But if necessary I can try to manually set some invalid tags, or (probably) dig up a broken version from my backup. (I'm hoping it's just a matter of "Ah-hah, there is a missing check for unexpected empty results at line such-and-so")