From 36d4a5c848ee47c534a437f236d0be68b04534be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 18 Mar 2021 09:40:46 +0100 Subject: [PATCH] YT: replace some URL chars with slashes instead encoding it Avoid dashdemux string query omission bug by using URL path with slashes instead of query string --- src/dash.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dash.js b/src/dash.js index 26b8650d..d04864ca 100644 --- a/src/dash.js +++ b/src/dash.js @@ -155,17 +155,19 @@ function _getStreamRepresentation(stream) repArr.push(` `); } - const encodedURL = Misc.encodeHTML(stream.url); + const modURL = stream.url + .replace('?', '/') + .replace(/&/g, '/') + .replace(/=/g, '/'); + const segRange = `${stream.indexRange.start}-${stream.indexRange.end}`; const initRange = `${stream.initRange.start}-${stream.initRange.end}`; repArr.push( - ` ${encodedURL}`, - ``, ` `, );