mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 17:17:59 +00:00
make isvalidvideo function moar goodaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
This commit is contained in:
parent
f3000bf3f3
commit
3aa0a80b47
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user