diff --git a/scripts/commands/playlist/cleaner.js b/scripts/commands/playlist/cleaner.js index 1eb623383e..0c2f89fab4 100644 --- a/scripts/commands/playlist/cleaner.js +++ b/scripts/commands/playlist/cleaner.js @@ -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) {