From 50aa3b66cfc607665ca78a8b1351b00457a15d5f Mon Sep 17 00:00:00 2001 From: Liam Chan Date: Mon, 17 Apr 2023 14:59:12 +0800 Subject: [PATCH] only use useful cameras --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 5210d91..3f05b22 100644 --- a/index.js +++ b/index.js @@ -31,9 +31,10 @@ http while ((match = pattern.exec(html)) !== null) { if (match.length > 0) { const playUrl = match[1]; - const decodedUrl = unicodeToChar(playUrl); - - urls.push(decodedUrl); + if (playUrl.match(/sdi4|sdi5|sdi6/)) { + const decodedUrl = unicodeToChar(playUrl); + urls.push(decodedUrl); + } } }