mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 23:57:50 +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
|
||||
|
||||
if(inv_vid.genre === "Music") {
|
||||
if(inv_vid?.genre === "Music") {
|
||||
var vidurl = u.losslessurl
|
||||
}
|
||||
|
||||
|
@ -310,7 +310,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
}
|
||||
} catch (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 color = data.color;
|
||||
const color2 = data.color2;
|
||||
const desc = data.desc;
|
||||
const desc = data?.desc;
|
||||
const isMobile = req.useragent.isMobile;
|
||||
const wiki = data.wiki;
|
||||
const { channel: tj } = data;
|
||||
|
@ -529,4 +529,4 @@ module.exports = function (app, config, renderTemplate) {
|
|||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue