mirror of
https://github.com/iptv-org/iptv.git
synced 2026-10-21 01:24:57 -04:00
Update cleaner.js
This commit is contained in:
1 parent
d319dd75c5
commit
d8cd310957
1 file changed
+1
-1
@@ -19,7 +19,7 @@ async function main() {
|
||||
for (const stream of playlist.items) {
|
||||
const [_, status] = stream.raw.match(/status="([a-z]+)"/) || [null, null]
|
||||
stream.status = status
|
||||
if (status === 'error' && /^(http|https)/.test(stream.url)) {
|
||||
if (status === 'error' && /^(http|https)/.test(stream.url) && !/\[.*\]$/.test(stream.name)) {
|
||||
const result = await checkStream(stream)
|
||||
const newStatus = parseStatus(result.error)
|
||||
if (status === newStatus) {
|
||||
|
||||
Reference in new issue
Block a user