From d74397ebec41e749d8e7232f29bdaf97eac3d288 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 16 Feb 2024 15:49:20 +0000 Subject: [PATCH] new class names! --- src/libpoketube/libpoketube-core.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index ff265d87..3f61187e 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -14,10 +14,10 @@ const getColors = require("get-image-colors"); /** * Class representing PokeTube's core functionality. */ -class PokeTubeCore { +class InnerTubePokeVidious { /** - * Create an instance of PokeTubeCore. - * @param {object} config - Configuration object for PokeTubeCore. + * Create an instance of InnerTubePokeVidious. + * @param {object} config - Configuration object for InnerTubePokeVidious. * @param {string} config.tubeApi - Tube API URL. * @param {string} config.invapi - Invid API URL. * @param {string} config.dislikes - Dislikes API URL. @@ -62,7 +62,7 @@ class PokeTubeCore { * @param {string} v - Video ID. * @returns {Promise} Promise resolving to the video information. */ - async video(v, contentlang, contentregion) { + async getYouTubeApiVideo(v, contentlang, contentregion) { const { fetch } = await import("undici"); @@ -167,8 +167,8 @@ class PokeTubeCore { } } -// Create an instance of PokeTubeCore with the provided config -const pokeTubeApiCore = new PokeTubeCore({ +// Create an instance of InnerTubePokeVidious with the provided config +const pokeTubeApiCore = new InnerTubePokeVidious({ tubeApi: "https://inner-api.poketube.fun/api/", invapi: "https://invid-api.poketube.fun/api/v1", invapi_alt: "https://iv.ggtyler.dev/api/v1",