0
0
Fork 0
mirror of https://github.com/YTVanced/Integrations synced 2024-11-30 07:03:02 +00:00

add 500 millis to the time without segments

nobody knows why
This commit is contained in:
caneleex 2021-07-24 20:29:21 +02:00
parent e75f97a228
commit e13c5742cf

View file

@ -406,7 +406,7 @@ public abstract class SponsorBlockUtils {
if (!SponsorBlockSettings.isSponsorBlockEnabled || !SponsorBlockSettings.showTimeWithoutSegments || sponsorSegmentsOfCurrentVideo == null) {
return "";
}
long timeWithoutSegments = PlayerController.getCurrentVideoLength();
long timeWithoutSegments = PlayerController.getCurrentVideoLength() + 500; // YouTube:tm:
for (SponsorSegment segment : sponsorSegmentsOfCurrentVideo) {
timeWithoutSegments -= segment.end - segment.start;
}