mirror of
https://github.com/iptv-org/iptv
synced 2026-11-02 07:14:27 -05:00
Merge pull request #55266 from Dev-next-gen/fix/mpd-invalid-manifest
fix: don't abort playlist:format on an unparseable .mpd response
This commit is contained in:
1 file changed
+4
@@ -175,6 +175,7 @@ export async function getStreamInfo(
|
|||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
} else if (url.includes('.mpd')) {
|
} else if (url.includes('.mpd')) {
|
||||||
|
try {
|
||||||
const manifest = parseManifest(data, {
|
const manifest = parseManifest(data, {
|
||||||
manifestUri: url,
|
manifestUri: url,
|
||||||
eventHandler: ({ type, message }) => console.log(`${type}: ${message}`)
|
eventHandler: ({ type, message }) => console.log(`${type}: ${message}`)
|
||||||
@@ -192,6 +193,9 @@ export async function getStreamInfo(
|
|||||||
codecs: attr.CODECS
|
codecs: attr.CODECS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return info
|
return info
|
||||||
|
|||||||
Reference in new issue
Block a user