mirror of
https://github.com/YTVanced/Integrations
synced 2024-12-03 08:27:26 +00:00
add 500 millis to the time without segments
nobody knows why
This commit is contained in:
parent
e75f97a228
commit
e13c5742cf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue