From 20d6128206de38c0e74d2630709e8de7ce09ebc6 Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 10 Aug 2024 18:47:10 +0000 Subject: [PATCH] Update src/libpoketube/libpoketube-core.js --- src/libpoketube/libpoketube-core.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 77429cf7..2d0fa6e6 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -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); }