From 3aa0a80b471b22adec790b447b597abb5f188d49 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 8 May 2023 15:53:19 +0000 Subject: [PATCH] make isvalidvideo function moar goodaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --- src/libpoketube/libpoketube-core.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 5df3e751..9c634dc4 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -21,7 +21,6 @@ const getColors = require("get-image-colors"); const wiki = require("wikipedia"); - // Util functions /* @@ -158,8 +157,8 @@ async function video(v) { async function isvalidvideo(v) { - if (v != "assets") { - return true; + if (v != "assets" && v != "cdn-cgi" && v != "404") { + return true; } else { return false; }