mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-10-16 22:07:30 +02:00
harden manifest detection and downloader failure coverage
This commit is contained in:
1 parent
dfa8095e1d
commit
96348a6a34
2 files changed
+74
-1
No files matched your search
@@ -386,7 +386,7 @@ func isManifestResponse(contentType string, peek []byte) bool {
|
||||
return true
|
||||
}
|
||||
s := strings.TrimSpace(strings.ToLower(string(peek)))
|
||||
if strings.HasPrefix(s, "<?xml") && strings.Contains(s, "<mpd") {
|
||||
if (strings.HasPrefix(s, "<?xml") && strings.Contains(s, "<mpd")) || strings.HasPrefix(s, "<mpd") {
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(s, "#extm3u") {
|
||||
|
||||
Reference in new issue
Block a user