mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-25 19:27:33 +01: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 boolean countSkips = true;
|
||||||
public static int adjustNewSegmentMillis = 150;
|
public static int adjustNewSegmentMillis = 150;
|
||||||
public static String uuid = "<invalid>";
|
public static String uuid = "<invalid>";
|
||||||
private static String sponsorBlockUrlCategories = "[]";
|
public static String sponsorBlockUrlCategories = "[]";
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@ -34,7 +34,7 @@ public class Requester {
|
|||||||
public static synchronized SponsorSegment[] getSegments(String videoId) {
|
public static synchronized SponsorSegment[] getSegments(String videoId) {
|
||||||
List<SponsorSegment> segments = new ArrayList<>();
|
List<SponsorSegment> segments = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
HttpURLConnection connection = getConnectionFromRoute(Route.GET_SEGMENTS, videoId);
|
HttpURLConnection connection = getConnectionFromRoute(Route.GET_SEGMENTS, videoId, SponsorBlockSettings.sponsorBlockUrlCategories);
|
||||||
int responseCode = connection.getResponseCode();
|
int responseCode = connection.getResponseCode();
|
||||||
|
|
||||||
switch (responseCode) {
|
switch (responseCode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user