Skip to content

Allow unskipping of auto-skipped SponsorBlock segments #7217

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

Closed
wants to merge 2 commits into from

Conversation

0je
Copy link

@0je 0je commented Apr 17, 2025

Allow unskipping of auto-skipped SponsorBlock segments

via return key while toast is shown.
Another return hit reskips the segment.

Similar to how it works on youtube.com or Invidious with SponsorBlock.

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Relevant issues are:
#6756 #1380 same problem, different suggestion
#3116 PR that allowed seeking into otherwise auto-skipped segment, seems like it got lost with the move to the shaka video player.

Description

When a sponsor segment was auto-skipped, I sometimes want to unskip it for at least 2 reasons.
The SponsorBlock segments are community provided and sometimes wrong/vandalism.
Another reason are funny transitions that make me wonder what the ad is about.
For now one would have to temporarily disable auto-skip / SponsorBlock and reload the video to watch the segment.
This PR adds the option to unskip an auto-skipped segment by hitting the return key while the "segment skipped" toast is shown.
Another return hit re-skips to the end of the segment.

marcel added 2 commits April 17, 2025 14:10
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) April 17, 2025 12:53
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 17, 2025
@absidue
Copy link
Member

absidue commented Apr 17, 2025

#3116 PR that allowed seeking into otherwise auto-skipped segment, seems like it got lost with the move to the shaka video player.

It wasn't lost, it was intentionally removed. It didn't separate between the user manually seeking or SponsorBlock seeking, so it quite frequently didn't skip segments even though there was no indication from the user that they wanted to see the segment. Apart from randomly just not skipping it was also especially problematic for back-to-back segments as it would treat the seek for the skip from the first one as a reason to not skip the second one. Quoting the migration PR #4978:

I removed the ability to seek into sponsor block segments that are set to skip, as it was causing the skipping to not work properly, due to the existing implementation being fundamentally flawed. If someone would like to add something like that back in the future, it should require a specific user-interaction to unskip the segment, e.g. a button in the skip message, instead of allowing users to manually seek into the segment.

@efb4f5ff-1298-471a-8973-3d47447115dc

Just to be clear there are 2 ways with SP to get into a segment:

  • By letting the user literally click into the sponsor segment and nothing would happen
  • By skipping the segment but giving the user the option to "unskip" it by going back to the beginning of the skipped segment and letting it play normally.

This PR implements the latter one.

Copy link
Member

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How it is now:

VirtualBoxVM_IR1YRYl213.mp4

Make toasts the same as SB so that the toasts define that you have to press enter to unskip/reskip

firefox_EujGHT1Tjv.mp4

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Apr 17, 2025
Copy link
Contributor

github-actions bot commented May 3, 2025

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

Copy link
Contributor

This PR was closed because it has been stalled for 14 days with no activity.

@github-actions github-actions bot closed this May 17, 2025
auto-merge was automatically disabled May 17, 2025 02:06

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants