From e8b07bf03a61d116f0f4d6960854098c24236551 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Thu, 15 Feb 2024 19:10:52 +0000 Subject: [PATCH] DASH: Don't set Range Header if no bytes range value This caused a HTTP 501 Not Implemented on some CDNs. --- devine/core/manifests/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index af09857..15d998a 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -441,7 +441,7 @@ class DASH: "url": url, "headers": { "Range": f"bytes={bytes_range}" - } + } if bytes_range else {} } for url, bytes_range in segments ],