mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 09:14:39 -05:00
fix stu
This commit is contained in:
parent
167d8c6500
commit
00763f3607
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ const sqp =
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
tubeApi: "https://api.poketube.fun/api/",
|
tubeApi: "https://api.poketube.fun/api/",
|
||||||
invapi: "https://yt.oelrichsgarcia.de/api/v1",
|
invapi: "https://invidious.slipfox.xyz/api/v1",
|
||||||
dislikes: "https://returnyoutubedislikeapi.com/votes?videoId=",
|
dislikes: "https://returnyoutubedislikeapi.com/votes?videoId=",
|
||||||
t_url: "https://t.poketube.fun/", // def matomo url
|
t_url: "https://t.poketube.fun/", // def matomo url
|
||||||
};
|
};
|
||||||
|
@ -81,7 +81,7 @@ async function video(v) {
|
||||||
var desc = "";
|
var desc = "";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var inv_comments = await fetch(`${config.invapi}/comments/${v}?region=US`).then(
|
var inv_comments = await fetch(`${config.invapi}/comments/${v}`).then(
|
||||||
(res) => res.text()
|
(res) => res.text()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ async function video(v) {
|
||||||
let vid;
|
let vid;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const videoInfo = await fetch(`https://inv.vern.cc/api/v1/videos/${v}?region=US`).then(res => res.text());
|
const videoInfo = await fetch(`https://invidious.slipfox.xyz/api/v1/videos/${v}`).then(res => res.text());
|
||||||
vid = await getJson(videoInfo);
|
vid = await getJson(videoInfo);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue