Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems Skipping Sponsors with Increased Playback Speed! #40

Open
INFINITY1001 opened this issue Jan 10, 2023 · 1 comment
Open

Problems Skipping Sponsors with Increased Playback Speed! #40

INFINITY1001 opened this issue Jan 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@INFINITY1001
Copy link

Hi,

First thanks for the amazing Sponsor Block application for Kodi! Love using it! I found a problem/bug where the sponsors don't skip when the playback speed is increased. In Kodi 19 Matrix playback speed was introduced. I believe it supports all the way up to 1.5x playback speed. Once the playback speed is increased (tempo/up) the sponsors no longer skip. If we return the speed back to 1x the sponsors skip perfectly fine.

Thanks for your amazing work, not sure your still working on this project. Will continue to use regardless.

Kind regards!

@siku2
Copy link
Owner

siku2 commented Jan 10, 2023

I don't have the time to look into this myself, so I'm just dropping a few pointers for someone else to get started.

The addon is supposed to take this into account, you can see the playback_speed factoring into the equation here:

wait_for = (target_time - self.getTime()) / self._playback_speed

I remember testing this on Kodi 18 and it used to work, but there have been some other changes since then, so not sure why it's no longer working.
One place to look into would be this callback:

def onPlayBackSpeedChanged(self, speed): # type: (int) -> None
self._playback_speed = float(speed)
self._trigger_wakeup()

I assume the playback_speed variable is simply no longer synchronized with the player's actual playback speed.

@siku2 siku2 added the bug Something isn't working label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants