Update src/libpoketube/libpoketube-core.js

This commit is contained in:
ashley 2024-08-10 18:47:10 +00:00
parent a60ce8a9d9
commit 20d6128206

View file

@ -122,13 +122,7 @@ class InnerTubePokeVidious {
); );
} }
var vidOBJECT = "" if (this.checkUnexistingObject(vid)) {
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 {
@ -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);
} }