mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:38:24 +01:00
add channel uploads
This commit is contained in:
parent
5fb2584525
commit
690267d605
1 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,11 @@ class PokeTubeCore {
|
||||||
const vid = await this.getJson(videoInfo);
|
const vid = await this.getJson(videoInfo);
|
||||||
const { json, video } = videoData;
|
const { json, video } = videoData;
|
||||||
|
|
||||||
|
const channel_uploads = await fetch(
|
||||||
|
`${this.config.invapi}/channels/${vid.authorId}?hl=${contentlang}®ion=${contentregion}`
|
||||||
|
);
|
||||||
|
const p = this.getJson(await channel_uploads.text());
|
||||||
|
|
||||||
if (!vid) {
|
if (!vid) {
|
||||||
console.log(
|
console.log(
|
||||||
`Sorry nya, we couldn't find any information about that video qwq`
|
`Sorry nya, we couldn't find any information about that video qwq`
|
||||||
|
@ -115,6 +120,7 @@ class PokeTubeCore {
|
||||||
video,
|
video,
|
||||||
vid,
|
vid,
|
||||||
comments,
|
comments,
|
||||||
|
channel_uploads:p,
|
||||||
engagement: fe.engagement,
|
engagement: fe.engagement,
|
||||||
wiki: "",
|
wiki: "",
|
||||||
desc: "",
|
desc: "",
|
||||||
|
|
Loading…
Reference in a new issue