only use useful cameras
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
90fb113248
commit
50aa3b66cf
3
index.js
3
index.js
@ -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 = {
|
||||||
|
Reference in New Issue
Block a user