mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 02:19:01 +01:00
use this.language instead :3
This commit is contained in:
parent
8edc4424c0
commit
23d1021ff0
1 changed files with 4 additions and 6 deletions
|
@ -12,9 +12,6 @@ const fetcher = require("../libpoketube/libpoketube-fetcher.js");
|
||||||
const getColors = require("get-image-colors");
|
const getColors = require("get-image-colors");
|
||||||
const wiki = require("wikipedia");
|
const wiki = require("wikipedia");
|
||||||
|
|
||||||
const language = "hl=en-US"
|
|
||||||
const region = "region=US"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class representing PokeTube's core functionality.
|
* Class representing PokeTube's core functionality.
|
||||||
*/
|
*/
|
||||||
|
@ -30,8 +27,9 @@ class PokeTubeCore {
|
||||||
constructor(config) {
|
constructor(config) {
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.cache = {};
|
this.cache = {};
|
||||||
this.sqp =
|
this.language = "hl=en-US";
|
||||||
"-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw";
|
this.region = "region=US";
|
||||||
|
this.sqp = "-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -82,7 +80,7 @@ class PokeTubeCore {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const [invComments, videoInfo, videoData] = await Promise.all([
|
const [invComments, videoInfo, videoData] = await Promise.all([
|
||||||
fetch(`${this.config.invapi}/comments/${v}?${language}`).then((res) => res.text()),
|
fetch(`${this.config.invapi}/comments/${v}?${this.language}`).then((res) => res.text()),
|
||||||
fetch(`${this.config.invapi}/videos/${v}`).then((res) => res.text()),
|
fetch(`${this.config.invapi}/videos/${v}`).then((res) => res.text()),
|
||||||
curly
|
curly
|
||||||
.get(`${this.config.tubeApi}video?v=${v}`, {
|
.get(`${this.config.tubeApi}video?v=${v}`, {
|
||||||
|
|
Loading…
Reference in a new issue