only use useful cameras
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Liam Chan 2023-04-17 14:59:12 +08:00
parent 90fb113248
commit 50aa3b66cf

View File

@ -31,11 +31,12 @@ http
while ((match = pattern.exec(html)) !== null) { while ((match = pattern.exec(html)) !== null) {
if (match.length > 0) { if (match.length > 0) {
const playUrl = match[1]; const playUrl = match[1];
if (playUrl.match(/sdi4|sdi5|sdi6/)) {
const decodedUrl = unicodeToChar(playUrl); const decodedUrl = unicodeToChar(playUrl);
urls.push(decodedUrl); urls.push(decodedUrl);
} }
} }
}
if (urls.length > 0) { if (urls.length > 0) {
responseBody.data = { responseBody.data = {