@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.
@@ -10113,10 +10113,13 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
10113
10113
  if (item.size > 0x1400000) {
10114
10114
  console.info(`File ${item.name} can't be loaded due oversize`);
10115
10115
  } else {
10116
- await fetch(item.file).then(response => response).then(resp => fetch(resp.url)).then(async response => {
10116
+ await fetch(`${item.file}&public_key=${item.public_key}`, {
10117
+ method: "GET",
10118
+ headers: [["Authorization", "OAuth 0dc7925ebcf047a1b001c07d6bd5ac49"]]
10119
+ }).then(response => response).then(resp => fetch(resp.url)).then(async response => {
10117
10120
  if (response.status === 302) {
10118
- return await fetch(response.headers.get('Location'), {
10119
- headers: [['Authorization', 'OAuth 0dc7925ebcf047a1b001c07d6bd5ac49']]
10121
+ return await fetch(`${response.headers.get("Location")}&public_key=${item.public_key}`, {
10122
+ headers: [["Authorization", "OAuth 0dc7925ebcf047a1b001c07d6bd5ac49"]]
10120
10123
  });
10121
10124
  } else {
10122
10125
  return response;