Fix sponsors not automatically skipping at 00:00

This commit is contained in:
blank X 2021-06-08 21:35:30 +07:00
parent 0aa4f4319a
commit 751f8039e9
No known key found for this signature in database
GPG key ID: CC15FC822C7F61F5

View file

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