@exezt-/webamp 1.5.0-0x708 → 1.5.0-0x710
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.
|
@@ -3550,12 +3550,12 @@ class WinampTelegramCustomHandler {
|
|
|
3550
3550
|
if (i === 0) {
|
|
3551
3551
|
this.webamp.setTracksToPlay([{
|
|
3552
3552
|
defaultName: item.name,
|
|
3553
|
-
url:
|
|
3553
|
+
url: `${item.file}&public_key=${item.public_key}`
|
|
3554
3554
|
}]);
|
|
3555
3555
|
} else {
|
|
3556
3556
|
this.webamp.appendTracks([{
|
|
3557
3557
|
defaultName: item.name,
|
|
3558
|
-
url:
|
|
3558
|
+
url: `${item.file}&public_key=${item.public_key}`
|
|
3559
3559
|
}]);
|
|
3560
3560
|
}
|
|
3561
3561
|
}
|
|
@@ -3610,8 +3610,7 @@ class WinampTelegramCustomHandler {
|
|
|
3610
3610
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onTrackNeedToLoad", () => {
|
|
3611
3611
|
let track = this.getCurrentTrack();
|
|
3612
3612
|
|
|
3613
|
-
if (track.url.split('')
|
|
3614
|
-
let uri = track.url.replace('$', '');
|
|
3613
|
+
if (track.url.split('/').includes('downloader')) {
|
|
3615
3614
|
this.loadTrackFromYandexDisk(track);
|
|
3616
3615
|
}
|
|
3617
3616
|
});
|
|
@@ -10923,7 +10922,7 @@ function files_addDirAtIndex(nextIndex) {
|
|
|
10923
10922
|
};
|
|
10924
10923
|
}
|
|
10925
10924
|
function files_addFilesFromUrl(atIndex = 0) {
|
|
10926
|
-
new webamp_telegram_handler["a" /* default */](false).
|
|
10925
|
+
new webamp_telegram_handler["a" /* default */](false).getTrackListFromYandexDisk(prompt('Введите ссылку на яндекс диск')); // return async (dispatch, getState, { handleLoadListEvent }) => {
|
|
10927
10926
|
// if (handleLoadListEvent) {
|
|
10928
10927
|
// const tracks = await handleLoadListEvent();
|
|
10929
10928
|
//
|