fix requesting segments

This commit is contained in:
caneleex 2021-07-19 17:14:16 +02:00
parent 6038d8d318
commit dfe62274fd
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class SponsorBlockSettings {
public static boolean countSkips = true;
public static int adjustNewSegmentMillis = 150;
public static String uuid = "<invalid>";
private static String sponsorBlockUrlCategories = "[]";
public static String sponsorBlockUrlCategories = "[]";
@SuppressWarnings("unused")
@Deprecated

View File

@ -34,7 +34,7 @@ public class Requester {
public static synchronized SponsorSegment[] getSegments(String videoId) {
List<SponsorSegment> segments = new ArrayList<>();
try {
HttpURLConnection connection = getConnectionFromRoute(Route.GET_SEGMENTS, videoId);
HttpURLConnection connection = getConnectionFromRoute(Route.GET_SEGMENTS, videoId, SponsorBlockSettings.sponsorBlockUrlCategories);
int responseCode = connection.getResponseCode();
switch (responseCode) {