mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 14:17:50 +01:00
new class names!
This commit is contained in:
parent
41b38f61a8
commit
d74397ebec
1 changed files with 6 additions and 6 deletions
|
@ -14,10 +14,10 @@ const getColors = require("get-image-colors");
|
||||||
/**
|
/**
|
||||||
* Class representing PokeTube's core functionality.
|
* Class representing PokeTube's core functionality.
|
||||||
*/
|
*/
|
||||||
class PokeTubeCore {
|
class InnerTubePokeVidious {
|
||||||
/**
|
/**
|
||||||
* Create an instance of PokeTubeCore.
|
* Create an instance of InnerTubePokeVidious.
|
||||||
* @param {object} config - Configuration object for PokeTubeCore.
|
* @param {object} config - Configuration object for InnerTubePokeVidious.
|
||||||
* @param {string} config.tubeApi - Tube API URL.
|
* @param {string} config.tubeApi - Tube API URL.
|
||||||
* @param {string} config.invapi - Invid API URL.
|
* @param {string} config.invapi - Invid API URL.
|
||||||
* @param {string} config.dislikes - Dislikes API URL.
|
* @param {string} config.dislikes - Dislikes API URL.
|
||||||
|
@ -62,7 +62,7 @@ class PokeTubeCore {
|
||||||
* @param {string} v - Video ID.
|
* @param {string} v - Video ID.
|
||||||
* @returns {Promise<object>} Promise resolving to the video information.
|
* @returns {Promise<object>} Promise resolving to the video information.
|
||||||
*/
|
*/
|
||||||
async video(v, contentlang, contentregion) {
|
async getYouTubeApiVideo(v, contentlang, contentregion) {
|
||||||
|
|
||||||
const { fetch } = await import("undici");
|
const { fetch } = await import("undici");
|
||||||
|
|
||||||
|
@ -167,8 +167,8 @@ class PokeTubeCore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create an instance of PokeTubeCore with the provided config
|
// Create an instance of InnerTubePokeVidious with the provided config
|
||||||
const pokeTubeApiCore = new PokeTubeCore({
|
const pokeTubeApiCore = new InnerTubePokeVidious({
|
||||||
tubeApi: "https://inner-api.poketube.fun/api/",
|
tubeApi: "https://inner-api.poketube.fun/api/",
|
||||||
invapi: "https://invid-api.poketube.fun/api/v1",
|
invapi: "https://invid-api.poketube.fun/api/v1",
|
||||||
invapi_alt: "https://iv.ggtyler.dev/api/v1",
|
invapi_alt: "https://iv.ggtyler.dev/api/v1",
|
||||||
|
|
Loading…
Reference in a new issue