mirror of
https://github.com/recloudstream/cloudstream.git
synced 2026-07-13 00:13:17 +00:00
Compare commits
2 commits
master
...
fix-ts-asc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7664b3385 |
||
|
|
d328bc638a |
1 changed files with 4 additions and 0 deletions
|
|
@ -234,6 +234,10 @@ object M3u8Helper2 {
|
|||
body.close()
|
||||
if (tsData.isEmpty()) throw ErrorLoadingException("no data")
|
||||
|
||||
// Some sources respond with "error 404" or similar, this checks for small responses that
|
||||
// looks like ASCII
|
||||
if (tsData.size < 128 && tsData.all { it >= 0 }) throw ErrorLoadingException("ASCII found instead of data")
|
||||
|
||||
return if (isEncrypted) {
|
||||
getDecrypted(encryptionData, tsData, encryptionIv, index)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue