mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 10:18:12 +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,13 +122,7 @@ 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);
|
||||
|
||||
try {
|
||||
|
@ -139,7 +133,7 @@ class InnerTubePokeVidious {
|
|||
result: {
|
||||
json: json?.video,
|
||||
video,
|
||||
vidOBJECT,
|
||||
vid,
|
||||
comments,
|
||||
channel_uploads: p,
|
||||
engagement: fe.engagement,
|
||||
|
@ -156,8 +150,6 @@ class InnerTubePokeVidious {
|
|||
};
|
||||
|
||||
return this.cache[v].result;
|
||||
|
||||
|
||||
} catch (error) {
|
||||
this.initError("Error getting video", error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue