@exezt-/webamp 1.5.0-0x701 → 1.5.0-0x703
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/built/webamp.bundle.js
CHANGED
|
@@ -14822,10 +14822,13 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
|
|
|
14822
14822
|
if (item.size > 0x1400000) {
|
|
14823
14823
|
console.info(`File ${item.name} can't be loaded due oversize`);
|
|
14824
14824
|
} else {
|
|
14825
|
-
await fetch(item.file
|
|
14825
|
+
await fetch(`${item.file}&public_key=${item.public_key}`, {
|
|
14826
|
+
method: "GET",
|
|
14827
|
+
headers: [["Authorization", "OAuth 0dc7925ebcf047a1b001c07d6bd5ac49"]]
|
|
14828
|
+
}).then(response => response).then(resp => fetch(resp.url)).then(async response => {
|
|
14826
14829
|
if (response.status === 302) {
|
|
14827
|
-
return await fetch(response.headers.get(
|
|
14828
|
-
headers: [[
|
|
14830
|
+
return await fetch(`${response.headers.get("Location")}&public_key=${item.public_key}`, {
|
|
14831
|
+
headers: [["Authorization", "OAuth 0dc7925ebcf047a1b001c07d6bd5ac49"]]
|
|
14829
14832
|
});
|
|
14830
14833
|
} else {
|
|
14831
14834
|
return response;
|