mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 09:27:49 +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 { 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) {
|
||||
console.log(
|
||||
`Sorry nya, we couldn't find any information about that video qwq`
|
||||
|
@ -115,6 +120,7 @@ class PokeTubeCore {
|
|||
video,
|
||||
vid,
|
||||
comments,
|
||||
channel_uploads:p,
|
||||
engagement: fe.engagement,
|
||||
wiki: "",
|
||||
desc: "",
|
||||
|
|
Loading…
Reference in a new issue