@exezt-/webamp 1.5.0-0x604 → 1.5.0-0x701

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.
@@ -10098,6 +10098,7 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
10098
10098
  x.open('get', `https://cloud-api.yandex.net/v1/disk/public/resources?public_key=${link}`, true);
10099
10099
  x.setRequestHeader('Accept', 'application/json');
10100
10100
  x.setRequestHeader('Content-Type', 'application/json');
10101
+ x.setRequestHeader('Authorization', 'OAuth 0dc7925ebcf047a1b001c07d6bd5ac49');
10101
10102
  x.send();
10102
10103
 
10103
10104
  x.onload = async () => {
@@ -10115,7 +10116,7 @@ class webamp_telegram_handler_WinampTelegramCustomHandler {
10115
10116
  await fetch(item.file).then(response => response).then(resp => fetch(resp.url)).then(async response => {
10116
10117
  if (response.status === 302) {
10117
10118
  return await fetch(response.headers.get('Location'), {
10118
- headers: [['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], ['Content-Type', 'application/octet-stream']]
10119
+ headers: [['Authorization', 'OAuth 0dc7925ebcf047a1b001c07d6bd5ac49']]
10119
10120
  });
10120
10121
  } else {
10121
10122
  return response;