mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:17:47 +01:00
Update src/libpoketube/libpoketube-core.js
This commit is contained in:
parent
a60ce8a9d9
commit
20d6128206
1 changed files with 2 additions and 10 deletions
|
@ -122,12 +122,6 @@ class InnerTubePokeVidious {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var vidOBJECT = ""
|
|
||||||
if(vid.error) {
|
|
||||||
var vidOBJECT = vid.error
|
|
||||||
} else {
|
|
||||||
var vidOBJECT = vid
|
|
||||||
}
|
|
||||||
if (this.checkUnexistingObject(vid)) {
|
if (this.checkUnexistingObject(vid)) {
|
||||||
const fe = await getdislikes(v);
|
const fe = await getdislikes(v);
|
||||||
|
|
||||||
|
@ -139,7 +133,7 @@ class InnerTubePokeVidious {
|
||||||
result: {
|
result: {
|
||||||
json: json?.video,
|
json: json?.video,
|
||||||
video,
|
video,
|
||||||
vidOBJECT,
|
vid,
|
||||||
comments,
|
comments,
|
||||||
channel_uploads: p,
|
channel_uploads: p,
|
||||||
engagement: fe.engagement,
|
engagement: fe.engagement,
|
||||||
|
@ -156,8 +150,6 @@ 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