Update cleaner.js

This commit is contained in:
Aleksandr Statciuk 2022-03-11 18:50:34 +03:00
parent bde30c0010
commit 30ad25075a
1 changed files with 1 additions and 1 deletions

View File

@ -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') {
if (status === 'error' && /^(http|https)/.test(stream.url)) {
const result = await checkStream(stream)
const newStatus = parseStatus(result.error)
if (status === newStatus) {