From e659d587d016efeb656ef894cbb9d687b32fce7a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 11 Aug 2021 19:35:28 +0300 Subject: [PATCH] Update format.js --- scripts/format.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/format.js b/scripts/format.js index acc2fca3c8..22c633d385 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -146,7 +146,8 @@ function updateGroupTitle(channel) { function normalizeUrl(channel) { const normalized = normalize(channel.url, { stripWWW: false }) - channel.updateUrl(normalized) + const decoded = decodeURIComponent(normalized).replace(/\s/g, '+') + channel.updateUrl(decoded) } function updateResolution(channel, metadata) {