mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-04 17:52:55 +01:00
add 500 millis to the time without segments
nobody knows why
This commit is contained in:
parent
d3e2f2c5e4
commit
c6306b66d0
@ -406,7 +406,7 @@ public abstract class SponsorBlockUtils {
|
|||||||
if (!SponsorBlockSettings.isSponsorBlockEnabled || !SponsorBlockSettings.showTimeWithoutSegments || sponsorSegmentsOfCurrentVideo == null) {
|
if (!SponsorBlockSettings.isSponsorBlockEnabled || !SponsorBlockSettings.showTimeWithoutSegments || sponsorSegmentsOfCurrentVideo == null) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
long timeWithoutSegments = PlayerController.getCurrentVideoLength();
|
long timeWithoutSegments = PlayerController.getCurrentVideoLength() + 500; // YouTube:tm:
|
||||||
for (SponsorSegment segment : sponsorSegmentsOfCurrentVideo) {
|
for (SponsorSegment segment : sponsorSegmentsOfCurrentVideo) {
|
||||||
timeWithoutSegments -= segment.end - segment.start;
|
timeWithoutSegments -= segment.end - segment.start;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user