siku2 / script.service.sponsorblock

Kodi add-on for SponsorBlock
MIT License
126 stars 15 forks source link

Kodi complains "Can't find a next item to play" after playing Youtube video #22

Closed matejdro closed 3 years ago

matejdro commented 3 years ago

I've noticed a mildly annoying issue with the plugin:

After finishing playback of every Youtube video (from what I can tell it happens regardless if there were skips or not), an error message will popup:

image

This is happening with Kodi 19 and was also happening with Kodi 18.X.

matejdro commented 3 years ago

Here are logs of this occurring: kodi2.txt. It occurs at 16:59:48.

This line seems relevant:

[script.service.sponsorblock] player_listener: segment ends after end of video, skipping to next video

But since there is no next video in the playlist, Kodi throws an error.

siku2 commented 3 years ago

Yeah, that's totally on me. The code doesn't check for an empty playlist because I assumed that Kodi would handle it gracefully.

Should be easy to fix.

siku2 commented 3 years ago

Fixed in v0.3.1