mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 17:37:51 +01:00
add isvidious
This commit is contained in:
parent
60bee14c8a
commit
5dd815c08c
1 changed files with 5 additions and 6 deletions
|
@ -209,11 +209,7 @@ core.video(v).then((data) => {
|
||||||
let badges = "";
|
let badges = "";
|
||||||
let comments = "";
|
let comments = "";
|
||||||
let nnn = "";
|
let nnn = "";
|
||||||
|
|
||||||
let url;
|
|
||||||
if (q === "medium") {
|
|
||||||
url = `https://inv.vern.cc/latest_version?id=${v}&itag=18&local=true`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(inv_vid?.error === "The uploader has not made this video available in your country"){
|
if(inv_vid?.error === "The uploader has not made this video available in your country"){
|
||||||
res.send("error : " + inv_vid.error + " please refresh the page please qt ")
|
res.send("error : " + inv_vid.error + " please refresh the page please qt ")
|
||||||
|
@ -223,13 +219,16 @@ core.video(v).then((data) => {
|
||||||
res.send("error : " + inv_vid.error + " please refresh the page please qt ")
|
res.send("error : " + inv_vid.error + " please refresh the page please qt ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
renderTemplate(res, req, "poketube.ejs", {
|
renderTemplate(res, req, "poketube.ejs", {
|
||||||
color: data.color,
|
color: data.color,
|
||||||
color2: data.color2,
|
color2: data.color2,
|
||||||
linkify,
|
linkify,
|
||||||
engagement,
|
engagement,
|
||||||
support,
|
support,
|
||||||
u,
|
u:u.url,
|
||||||
|
isvidious:u.isInvidiousURL,
|
||||||
video: json,
|
video: json,
|
||||||
date: k.Video.uploadDate,
|
date: k.Video.uploadDate,
|
||||||
e,
|
e,
|
||||||
|
|
Loading…
Reference in a new issue