Merge pull request #65 from the-blank-x/sbvideostartfix

Fix sponsors not automatically skipping at 00:00
This commit is contained in:
poly 2021-06-19 11:57:02 -06:00 committed by GitHub
commit fe95f616f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1680,7 +1680,7 @@ public final class Player implements
simpleExoPlayer.getBufferedPercentage() simpleExoPlayer.getBufferedPercentage()
); );
if (sponsorBlockMode == SponsorBlockMode.ENABLED) { if (sponsorBlockMode == SponsorBlockMode.ENABLED && isPrepared) {
final VideoSegment segment = getSkippableSegment(currentProgress); final VideoSegment segment = getSkippableSegment(currentProgress);
if (segment == null) { if (segment == null) {
lastSkipTarget = -1; lastSkipTarget = -1;