mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 11:38:12 +01:00
make isvalidvideo function moar goodaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
This commit is contained in:
parent
f3000bf3f3
commit
3aa0a80b47
1 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,6 @@ const getColors = require("get-image-colors");
|
||||||
|
|
||||||
const wiki = require("wikipedia");
|
const wiki = require("wikipedia");
|
||||||
|
|
||||||
|
|
||||||
// Util functions
|
// Util functions
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -158,7 +157,7 @@ async function video(v) {
|
||||||
|
|
||||||
|
|
||||||
async function isvalidvideo(v) {
|
async function isvalidvideo(v) {
|
||||||
if (v != "assets") {
|
if (v != "assets" && v != "cdn-cgi" && v != "404") {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue