use config.invidapi instead

This commit is contained in:
Ashley //// 2024-03-27 16:18:38 +00:00
parent 8fc004c971
commit fa861a0b4f

View file

@ -121,7 +121,7 @@ module.exports = function (app, config, renderTemplate) {
if (req.useragent.isMobile) res.redirect("/"); if (req.useragent.isMobile) res.redirect("/");
const playlist = await fetch( const playlist = await fetch(
`https://invid-api.poketube.fun/api/v1/playlists/${req.query.list}?hl=en-us` `${config.invapi}playlists/${req.query.list}?hl=en-us`
); );
const p = getJson(await playlist.text()); const p = getJson(await playlist.text());