Removed useless caching functionality

This commit is contained in:
jakweg 2020-08-25 13:46:20 +02:00
parent 5d8bcb9cb1
commit 9c6e58d5dd
6 changed files with 8 additions and 157 deletions

View file

@ -75,7 +75,7 @@ public class PlayerController {
sponsorTimer.schedule(new TimerTask() {
@Override
public void run() {
executeDownloadSegments(currentVideoId, false);
executeDownloadSegments(currentVideoId);
}
}, 0);
}
@ -114,8 +114,8 @@ public class PlayerController {
}
}
public static void executeDownloadSegments(String videoId, boolean ignoreCache) {
SponsorSegment[] segments = SponsorBlockUtils.getSegmentsForVideo(videoId, ignoreCache);
public static void executeDownloadSegments(String videoId) {
SponsorSegment[] segments = SponsorBlockUtils.getSegmentsForVideo(videoId);
Arrays.sort(segments);
if (VERBOSE)