DASH: Don't set Range Header if no bytes range value

This caused a HTTP 501 Not Implemented on some CDNs.
This commit is contained in:
rlaphoenix 2024-02-15 19:10:52 +00:00
parent 630a9906ce
commit e8b07bf03a
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class DASH:
"url": url, "url": url,
"headers": { "headers": {
"Range": f"bytes={bytes_range}" "Range": f"bytes={bytes_range}"
} } if bytes_range else {}
} }
for url, bytes_range in segments for url, bytes_range in segments
], ],