siku2 / script.service.sponsorblock

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

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

Closed ape364 closed 3 years ago

ape364 commented 3 years ago

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 https://github.com/siku2/script.service.sponsorblock/issues/11#issuecomment-730537699

siku2 commented 3 years ago

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.

ape364 commented 3 years ago

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

siku2 commented 3 years ago

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.

ape364 commented 3 years ago

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

siku2 commented 3 years ago

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

ape364 commented 3 years ago

https://gist.github.com/ape364/6ae961f5a0eb861372b5fbc05f90d8ac

siku2 commented 3 years ago

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.