mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 07:18:24 +01:00
fix a thingy
This commit is contained in:
parent
7d2506f8a2
commit
e7bfa3db59
1 changed files with 7 additions and 2 deletions
|
@ -36,6 +36,11 @@ function linkify(text) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function endsWithYouTubeAutoGenerated(text) {
|
||||||
|
const target = " Auto-generated by YouTube. ";
|
||||||
|
return text.endsWith(target);
|
||||||
|
}
|
||||||
|
|
||||||
const sha384 = modules.hash;
|
const sha384 = modules.hash;
|
||||||
const fetch = modules.fetch;
|
const fetch = modules.fetch;
|
||||||
const htmlToText = require("html-to-text");
|
const htmlToText = require("html-to-text");
|
||||||
|
@ -194,7 +199,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
d = desc.toString().replace(/\n/g, " <br> ");
|
d = desc.toString().replace(/\n/g, " <br> ");
|
||||||
}
|
}
|
||||||
|
|
||||||
const descriptionString = String(inv_vid.description);
|
const descriptionString = String(inv_vid?.description);
|
||||||
|
|
||||||
function extractInfo(regex) {
|
function extractInfo(regex) {
|
||||||
return descriptionString !== "[object Object]"
|
return descriptionString !== "[object Object]"
|
||||||
|
|
Loading…
Reference in a new issue