Don't listen for onPlayBackEnded events when waiting to send UpNext data.
The next UpNext version will start the following episodes with a playlist, and it seems Kodi doesn't actually stop the VideoPlayer until the next episode starts (this actually looks quite nice, since it doesn't fallback to the episode overview anymore). This needs a small change in the way we wait to send the UpNext data. We still listen to onPlaybackStopped and onPlaybackError events. These are emitted when the user invokes stop himself, or when an error occurs.
The next UpNext version will start the following episodes with a playlist, and it seems Kodi doesn't actually stop the VideoPlayer until the next episode starts (this actually looks quite nice, since it doesn't fallback to the episode overview anymore). This needs a small change in the way we wait to send the UpNext data. We still listen to onPlaybackStopped and onPlaybackError events. These are emitted when the user invokes stop himself, or when an error occurs.
@dagwieers