Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from the-blank-x/sbvideostartfix
Browse files Browse the repository at this point in the history
Fix sponsors not automatically skipping at 00:00
  • Loading branch information
polymorphicshade authored Jun 19, 2021
2 parents 7fc8b51 + 751f803 commit fe95f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ private void triggerProgressUpdate(final boolean isRewind) {
simpleExoPlayer.getBufferedPercentage()
);

if (sponsorBlockMode == SponsorBlockMode.ENABLED) {
if (sponsorBlockMode == SponsorBlockMode.ENABLED && isPrepared) {
final VideoSegment segment = getSkippableSegment(currentProgress);
if (segment == null) {
lastSkipTarget = -1;
Expand Down

0 comments on commit fe95f61

Please sign in to comment.