mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 18:17:49 +01:00
Update src/libpoketube/init/pages-video.js
This commit is contained in:
parent
f3a5c690e3
commit
93898da514
1 changed files with 4 additions and 2 deletions
|
@ -228,8 +228,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const inv_vid = data?.vid;
|
const inv_vid = data?.vid;
|
||||||
const desc = data?.desc || "";
|
const desc = data?.desc || "";
|
||||||
|
|
||||||
if(k.Error) res.send("error")
|
if (k?.Error) {
|
||||||
|
return res.status(404).send("404: Not Found");
|
||||||
|
}
|
||||||
|
|
||||||
let d = false;
|
let d = false;
|
||||||
if (desc !== "[object Object]") {
|
if (desc !== "[object Object]") {
|
||||||
d = desc.toString().replace(/\n/g, " <br> ");
|
d = desc.toString().replace(/\n/g, " <br> ");
|
||||||
|
|
Loading…
Reference in a new issue