mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 19:58:16 +01:00
add alot of stuff :3
This commit is contained in:
parent
cb9342a799
commit
a53855ff29
1 changed files with 4 additions and 4 deletions
|
@ -227,7 +227,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
var vidurl = u.url
|
var vidurl = u.url
|
||||||
|
|
||||||
if(inv_vid.genre === "Music") {
|
if(inv_vid?.genre === "Music") {
|
||||||
var vidurl = u.losslessurl
|
var vidurl = u.losslessurl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return res.redirect(`/watch?v=${req.query.v}&fx=1&err=${btoa(error)}`);
|
return res.redirect(`/watch?v=${req.query.v}&fx=1&err=${error}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -333,7 +333,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const data = await core.video(v);
|
const data = await core.video(v);
|
||||||
const color = data.color;
|
const color = data.color;
|
||||||
const color2 = data.color2;
|
const color2 = data.color2;
|
||||||
const desc = data.desc;
|
const desc = data?.desc;
|
||||||
const isMobile = req.useragent.isMobile;
|
const isMobile = req.useragent.isMobile;
|
||||||
const wiki = data.wiki;
|
const wiki = data.wiki;
|
||||||
const { channel: tj } = data;
|
const { channel: tj } = data;
|
||||||
|
|
Loading…
Reference in a new issue