From 0cb34d9bf1fb21106d705914ab3103442340f916 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Mon, 2 Sep 2024 12:24:30 +0100 Subject: [PATCH] Headers for Samsung TV to work --- crates/librqbit/src/http_api.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/librqbit/src/http_api.rs b/crates/librqbit/src/http_api.rs index e6f701d9..a90a7986 100644 --- a/crates/librqbit/src/http_api.rs +++ b/crates/librqbit/src/http_api.rs @@ -346,6 +346,16 @@ impl HttpApi { let mut output_headers = HeaderMap::new(); output_headers.insert("Accept-Ranges", HeaderValue::from_static("bytes")); + output_headers.insert( + "transferMode.dlna.org", + HeaderValue::from_static("Streaming"), + ); + + output_headers.insert( + "contentFeatures.dlna.org", + HeaderValue::from_static("DLNA.ORG_OP=01"), + ); + if let Ok(mime) = state.torrent_file_mime_type(idx, file_id) { output_headers.insert( http::header::CONTENT_TYPE,