siku2/script.service.sponsorblock

The segment is not skipped at the beginning of a video when shared from Yatse

Closed this issue · 7 comments

Hello. First of all, thanks for such a great thing! :)

But I'm facing this issue with this video https://youtu.be/G51PJ5KWAnc
YouTube Vanced on my mobile phone works well.
Here are the logs

I see an unhandled exception:

2020-11-19 22:44:16.103 T:1268760800   ERROR: Exception in thread Checkpoint Listener:
                                            Traceback (most recent call last):
                                              File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
                                                self.run()
                                              File "/usr/lib/python2.7/threading.py", line 754, in run
                                                self.__target(*self.__args, **self.__kwargs)
                                              File "/home/osmc/.kodi/addons/script.service.sponsorblock/resources/lib/utils/checkpoint_listener.py", line 148, in __t_event_loop
                                                cp_reached = self.__idle()
                                              File "/home/osmc/.kodi/addons/script.service.sponsorblock/resources/lib/utils/checkpoint_listener.py", line 109, in __idle
                                                return self.__sleep_until(cp)
                                              File "/home/osmc/.kodi/addons/script.service.sponsorblock/resources/lib/utils/checkpoint_listener.py", line 93, in __sleep_until
                                                wait_for = (target_time - self._get_current_time()) / self._playback_speed
                                              File "/home/osmc/.kodi/addons/script.service.sponsorblock/resources/lib/utils/checkpoint_listener.py", line 86, in _get_current_time
                                                return self.getTime()
                                            RuntimeError: XBMC is not playing any media file

probably it occurs cuz the ad starts from the very beginning of the video

Originally posted by @ape364 in #11 (comment)

siku2 commented

Okay I tried a different approach now. Will create a new release (0.2.3) in a few minutes.
Please let me know whether that actually fixed it.

How can I update the add-on? I'm trying to update, but it's still version 0.2.2.

siku2 commented

How can I update the add-on? I'm trying to update, but it's still version 0.2.2.

Sorry about that, it seems like the automatic release failed. I'll do it manually so you should see a new release soon.

I've tried again at the same video - no changes.

siku2 commented

Can you update the logs? I added some additional information for this case.

siku2 commented

After looking at the logfile again, I believe this was actually the same issue as #17.
Closing this because that issue has been resolved some time ago.