fix requesting segments
This commit is contained in:
parent
f5300bf9b6
commit
c95f505708
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue