mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:48:05 +01:00
fix arabic lang lmao
This commit is contained in:
parent
61f0759e82
commit
796cfe4403
1 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,9 @@ const fetcher = require("../libpoketube/libpoketube-fetcher.js");
|
|||
const getColors = require("get-image-colors");
|
||||
const wiki = require("wikipedia");
|
||||
|
||||
const language = "hl=en-US"
|
||||
const region = "region=US"
|
||||
|
||||
/**
|
||||
* Class representing PokeTube's core functionality.
|
||||
*/
|
||||
|
@ -79,7 +82,7 @@ class PokeTubeCore {
|
|||
|
||||
try {
|
||||
const [invComments, videoInfo, videoData] = await Promise.all([
|
||||
fetch(`${this.config.invapi}/comments/${v}`).then((res) => res.text()),
|
||||
fetch(`${this.config.invapi}/comments/${v}?${language}`).then((res) => res.text()),
|
||||
fetch(`${this.config.invapi}/videos/${v}`).then((res) => res.text()),
|
||||
curly
|
||||
.get(`${this.config.tubeApi}video?v=${v}`, {
|
||||
|
|
Loading…
Reference in a new issue