mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-09-11 16:56:30 +02:00
fix requesting segments
This commit is contained in:
parent
6038d8d318
commit
dfe62274fd
@ -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
Block a user