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
SponsorBlock not working for outros/end of videos (iOS) #163
Comments
The guard section in this submodule from "yattee/main/Model/Player/PlayerSponsorBlock.swift" might be related to the issue, maybe one of the times is rounded at some point or something. Checking the private func skip(_ segment: Segment, at time: CMTime) {
guard segment.endTime.seconds <= playerItemDuration?.seconds ?? .infinity else {
logger.error(
"segment end time is: \(segment.end) when player item duration is: \(playerItemDuration?.seconds ?? .infinity)"
)
return
} |
Are you able to provide video where this can be reproduced because I can't? |
Sure, for example the outro at the end of this video appears red in the seek bar but does not skip: |
Updated builds have fixed and improved outros skipping - it should close video/skip to next without seeking for the end of video first |
Thank-you, that fixed it, amazing work like always. Closing issue. |
SponsorBlock doesn't seem to skip outros, they appear in the seek bar (as coloured red), but aren't skipped. I think this might actually have to do with SponsorBlock not skipping sections that go to the end of the video in general, rather than the "outro" subset being the issue, but I haven't found a test case that has an ending that isn't an "outro" yet (or an outro that isn't an ending).
However SponsorBlock works fine for skipping sections that aren't at the end of videos.
(Note: this doesn't seem to effect intros/skipped segments that start at the beginning of videos, so this seems to be an issue just for endings).
Also, this is a separate issue to #162 which was resolved.
The text was updated successfully, but these errors were encountered: