tiktok: throw a proper error if no video was returned from api

This commit is contained in:
wukko 2023-12-29 08:16:40 +06:00
parent a69497245b
commit 90f82ae36e

View file

@ -23,7 +23,7 @@ function selector(j, h, id) {
t = j['aweme_detail'];
break;
}
if (t.length < 3) return false;
if (t?.length < 3) return false;
return t;
}