mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
perf: Remove unnecessary api key parameter
This commit is contained in:
parent
d20b768bc2
commit
ba5e7d870e
@ -9,8 +9,6 @@ import java.net.HttpURLConnection;
|
|||||||
/** @noinspection unused*/
|
/** @noinspection unused*/
|
||||||
public final class StoryBoardRendererRoutes {
|
public final class StoryBoardRendererRoutes {
|
||||||
private static final String YT_API_URL = "https://www.youtube.com/youtubei/v1/";
|
private static final String YT_API_URL = "https://www.youtube.com/youtubei/v1/";
|
||||||
private static final String YT_API_KEY = "AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w";
|
|
||||||
|
|
||||||
static final Route GET_STORYBOARD_SPEC = new Route(
|
static final Route GET_STORYBOARD_SPEC = new Route(
|
||||||
Route.Method.POST,
|
Route.Method.POST,
|
||||||
"player" +
|
"player" +
|
||||||
@ -23,7 +21,7 @@ public final class StoryBoardRendererRoutes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static HttpURLConnection getPlayerResponseConnectionFromRoute() throws IOException {
|
public static HttpURLConnection getPlayerResponseConnectionFromRoute() throws IOException {
|
||||||
var connection = Requester.getConnectionFromRoute(YT_API_URL, GET_STORYBOARD_SPEC, YT_API_KEY);
|
var connection = Requester.getConnectionFromRoute(YT_API_URL, GET_STORYBOARD_SPEC);
|
||||||
connection.setRequestProperty("User-Agent", "com.google.android.youtube/18.37.36 (Linux; U; Android 12; GB) gzip");
|
connection.setRequestProperty("User-Agent", "com.google.android.youtube/18.37.36 (Linux; U; Android 12; GB) gzip");
|
||||||
connection.setRequestProperty("X-Goog-Api-Format-Version", "2");
|
connection.setRequestProperty("X-Goog-Api-Format-Version", "2");
|
||||||
connection.setRequestProperty("Content-Type", "application/json");
|
connection.setRequestProperty("Content-Type", "application/json");
|
||||||
|
Loading…
Reference in New Issue
Block a user