From 1830d4f258abf951cd55ae8273956ee3e01b6ea9 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 27 Oct 2022 11:32:32 +0200 Subject: [PATCH] add libpoketube to main file --- server.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 5dfd8210..95acf995 100644 --- a/server.js +++ b/server.js @@ -29,8 +29,9 @@ const fetch = require("node-fetch"); const { toJson } = require("xml2json"); -const fetcher = require("./src/fetcher.js"); -const api = require("./src/pt-api.js"); +// libpoketube +const fetcher = require("./src/libpoketube/libpoketube-fetcher.js"); +const api = require("./src/libpoketube/libpoketube-core.js"); const templateDir = path.resolve(`${process.cwd()}${path.sep}html`); @@ -527,6 +528,8 @@ app.get("/js/:id", (req, res) => { res.sendFile(__dirname + `/js/${req.params.id}`); }); + + ///////////// API ///////////// app.get("/embed/:v", async function (req, res) {