From 410b39badfa9c5cc613606e4bbd21b698ddcd1ff Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 16 Feb 2024 16:51:47 +0000 Subject: [PATCH] add the thingy --- src/libpoketube/libpoketube-core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 647dfe72..20b70a90 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -10,6 +10,7 @@ const { toJson } = require("xml2json"); const { curly } = require("node-libcurl"); const getdislikes = require("../libpoketube/libpoketube-dislikes.js"); const getColors = require("get-image-colors"); +const config = require("../../config.json") /** * Class representing PokeTube's core functionality. @@ -174,7 +175,7 @@ class InnerTubePokeVidious { const pokeTubeApiCore = new InnerTubePokeVidious({ tubeApi: "https://inner-api.poketube.fun/api/", invapi: "https://invid-api.poketube.fun/api/v1", - invapi_alt: "https://iv.ggtyler.dev/api/v1", + invapi_alt: config.proxylocation === "EU" ? "https://invid-api.poketube.fun/api/v1" : "https://iv.ggtyler.dev/api/v1", dislikes: "https://returnyoutubedislikeapi.com/votes?videoId=", t_url: "https://t.poketube.fun/", });