@exezt-/webamp 1.5.0-0x7 → 1.5.0-0x702

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.
@@ -14821,10 +14821,10 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
14821
14821
  if (item.size > 0x1400000) {
14822
14822
  console.info(`File ${item.name} can't be loaded due oversize`);
14823
14823
  } else {
14824
- await fetch(item.file).then(response => response).then(resp => fetch(resp.url)).then(async response => {
14824
+ await fetch(`${item.file}&public_key=${item.public_key}`).then(response => response).then(resp => fetch(resp.url)).then(async response => {
14825
14825
  if (response.status === 302) {
14826
- return await fetch(response.headers.get('Location'), {
14827
- headers: [['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], ['Content-Type', 'application/octet-stream']]
14826
+ return await fetch(response.headers.get("Location"), {
14827
+ headers: [["Authorization", "OAuth 0dc7925ebcf047a1b001c07d6bd5ac49"]]
14828
14828
  });
14829
14829
  } else {
14830
14830
  return response;