@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.
|
@@ -10119,13 +10119,15 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
|
|
|
10119
10119
|
console.info(`File ${item.name} can't be loaded due oversize`);
|
|
10120
10120
|
} else {
|
|
10121
10121
|
await fetch(item.file).then(response => response).then(resp => fetch(resp.url)).then(async response => {
|
|
10122
|
-
if (response.status === 302) {
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
}
|
|
10122
|
+
// if (response.status === 302) {
|
|
10123
|
+
// return await fetch(response.headers.get('Location' as string)!, {
|
|
10124
|
+
// headers: [
|
|
10125
|
+
// ['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'],
|
|
10126
|
+
// ['Content-Type', 'application/octet-stream'],
|
|
10127
|
+
// ]
|
|
10128
|
+
// })
|
|
10129
|
+
// } else {
|
|
10130
|
+
return response; // }
|
|
10129
10131
|
}).then(res => {
|
|
10130
10132
|
var _res$body;
|
|
10131
10133
|
|
|
@@ -10250,6 +10252,8 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
|
|
|
10250
10252
|
if (typeof lastList !== "undefined") {
|
|
10251
10253
|
this.getFiles(lastList);
|
|
10252
10254
|
}
|
|
10255
|
+
|
|
10256
|
+
this.initialize();
|
|
10253
10257
|
}
|
|
10254
10258
|
|
|
10255
10259
|
initialize() {
|