front: don't mangle and encode urls when sending to api

This commit is contained in:
dumbmoron 2023-12-14 23:46:49 +00:00
parent 818c236782
commit e1fa32beb3
No known key found for this signature in database
GPG key ID: C59997C76C6A8E5F

View file

@ -1,4 +1,4 @@
const version = 39;
const version = 40;
const ua = navigator.userAgent.toLowerCase();
const isIOS = ua.match("iphone os");
@ -358,7 +358,7 @@ async function download(url) {
eid("url-clear").style.display = "none";
eid("url-input-area").disabled = true;
let req = {
url: encodeURIComponent(url.split("&")[0].split('%')[0]),
url,
aFormat: sGet("aFormat").slice(0, 4),
filenamePattern: sGet("filenamePattern"),
dubLang: false