mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 01:50:04 -04:00
Update cleaner.js
This commit is contained in:
parent
30ad25075a
commit
17894e71fb
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ async function main() {
|
||||||
for (const stream of playlist.items) {
|
for (const stream of playlist.items) {
|
||||||
const [_, status] = stream.raw.match(/status="([a-z]+)"/) || [null, null]
|
const [_, status] = stream.raw.match(/status="([a-z]+)"/) || [null, null]
|
||||||
stream.status = status
|
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 result = await checkStream(stream)
|
||||||
const newStatus = parseStatus(result.error)
|
const newStatus = parseStatus(result.error)
|
||||||
if (status === newStatus) {
|
if (status === newStatus) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue