mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
harden manifest detection and downloader failure coverage
This commit is contained in:
@@ -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