mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 10:58:12 +01:00
try this
Signed-off-by: ashley <iamashley@duck.com>
This commit is contained in:
parent
90f5f08160
commit
a60ce8a9d9
1 changed files with 10 additions and 2 deletions
|
@ -122,7 +122,13 @@ class InnerTubePokeVidious {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.checkUnexistingObject(vid)) {
|
var vidOBJECT = ""
|
||||||
|
if(vid.error) {
|
||||||
|
var vidOBJECT = vid.error
|
||||||
|
} else {
|
||||||
|
var vidOBJECT = vid
|
||||||
|
}
|
||||||
|
if (this.checkUnexistingObject(vid)) {
|
||||||
const fe = await getdislikes(v);
|
const fe = await getdislikes(v);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -133,7 +139,7 @@ class InnerTubePokeVidious {
|
||||||
result: {
|
result: {
|
||||||
json: json?.video,
|
json: json?.video,
|
||||||
video,
|
video,
|
||||||
vid,
|
vidOBJECT,
|
||||||
comments,
|
comments,
|
||||||
channel_uploads: p,
|
channel_uploads: p,
|
||||||
engagement: fe.engagement,
|
engagement: fe.engagement,
|
||||||
|
@ -150,6 +156,8 @@ class InnerTubePokeVidious {
|
||||||
};
|
};
|
||||||
|
|
||||||
return this.cache[v].result;
|
return this.cache[v].result;
|
||||||
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.initError("Error getting video", error);
|
this.initError("Error getting video", error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue