@exezt-/webamp 1.5.0-0x601 → 1.5.0-0x602
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
|
@@ -14828,13 +14828,15 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
|
|
|
14828
14828
|
console.info(`File ${item.name} can't be loaded due oversize`);
|
|
14829
14829
|
} else {
|
|
14830
14830
|
await fetch(item.file).then(response => response).then(resp => fetch(resp.url)).then(async response => {
|
|
14831
|
-
if (response.status === 302) {
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
}
|
|
14831
|
+
// if (response.status === 302) {
|
|
14832
|
+
// return await fetch(response.headers.get('Location' as string)!, {
|
|
14833
|
+
// headers: [
|
|
14834
|
+
// ['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'],
|
|
14835
|
+
// ['Content-Type', 'application/octet-stream'],
|
|
14836
|
+
// ]
|
|
14837
|
+
// })
|
|
14838
|
+
// } else {
|
|
14839
|
+
return response; // }
|
|
14838
14840
|
}).then(res => {
|
|
14839
14841
|
var _res$body;
|
|
14840
14842
|
|
|
@@ -14959,6 +14961,8 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
|
|
|
14959
14961
|
if (typeof lastList !== "undefined") {
|
|
14960
14962
|
this.getFiles(lastList);
|
|
14961
14963
|
}
|
|
14964
|
+
|
|
14965
|
+
this.initialize();
|
|
14962
14966
|
}
|
|
14963
14967
|
|
|
14964
14968
|
initialize() {
|