mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 20:57:48 +01:00
add channel uploads lol
This commit is contained in:
parent
690267d605
commit
1d2d6d9643
1 changed files with 6 additions and 1 deletions
|
@ -200,6 +200,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
core.video(v, contentlang, contentregion).then((data) => {
|
core.video(v, contentlang, contentregion).then((data) => {
|
||||||
try {
|
try {
|
||||||
const k = data?.video;
|
const k = data?.video;
|
||||||
|
const channel_uploads = data?.channel_uploads
|
||||||
const json = data?.json;
|
const json = data?.json;
|
||||||
const engagement = data?.engagement;
|
const engagement = data?.engagement;
|
||||||
const inv_comments = data?.comments || "Disabled";
|
const inv_comments = data?.comments || "Disabled";
|
||||||
|
@ -211,6 +212,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) {
|
||||||
|
@ -226,11 +228,13 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const reddit = extractInfo(REDDIT_REGEX);
|
const reddit = extractInfo(REDDIT_REGEX);
|
||||||
const instagram = extractInfo(INSTAGRAM_REGEX);
|
const instagram = extractInfo(INSTAGRAM_REGEX);
|
||||||
|
|
||||||
|
|
||||||
var proxyurl = config.p_url;
|
var proxyurl = config.p_url;
|
||||||
var vidurl = u.url;
|
var vidurl = u.url;
|
||||||
var isvidious = u.isInvidiousURL;
|
var isvidious = u.isInvidiousURL;
|
||||||
var mediaproxy = config.media_proxy
|
var mediaproxy = config.media_proxy
|
||||||
|
|
||||||
|
|
||||||
if (inv_vid?.genre === "Music") {
|
if (inv_vid?.genre === "Music") {
|
||||||
var vidurl = u.losslessurl;
|
var vidurl = u.losslessurl;
|
||||||
}
|
}
|
||||||
|
@ -298,6 +302,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
turntomins,
|
turntomins,
|
||||||
twitch,
|
twitch,
|
||||||
reddit,
|
reddit,
|
||||||
|
channel_uploads,
|
||||||
secure,
|
secure,
|
||||||
process,
|
process,
|
||||||
isSchoolProxy,
|
isSchoolProxy,
|
||||||
|
|
Loading…
Reference in a new issue