Skip to content

Commit 92ae583

Browse files
committed
Upgrade yandex-music-client
1 parent 8c973d7 commit 92ae583

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,6 @@
274274
"extract-zip": "^2.0.1",
275275
"mobx": "^5.15.4",
276276
"open": "^7.0.3",
277-
"yandex-music-client": "0.0.6"
277+
"yandex-music-client": "0.0.7"
278278
}
279279
}

src/YandexMusicApi/YandexMusicApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ export class YandexMusicApi {
4646
async getNewReleases(): Promise<Album[]> {
4747
const resp = await this.client!.landing.getNewReleases();
4848
const albumIds = resp.result.newReleases.join(",");
49-
const albums = await this.client!.albums.getByIds({ 'album-ids': albumIds });
49+
const albums = await this.client!.albums.getAlbumsByIds({ 'album-ids': albumIds });
5050

5151
return albums.result;
5252
}
5353

5454
async getNewPlayLists(): Promise<Playlist[]> {
5555
const resp = await this.client!.landing.getNewPlaylists();
5656
const ids = getPlayListsIds(resp.result.newPlaylists);
57-
const playListsResp = await this.client!.playlists.getByIds({ playlistIds: ids });
57+
const playListsResp = await this.client!.playlists.getPlaylistsByIds({ playlistIds: ids });
5858

5959
return playListsResp.result;
6060
}
@@ -63,7 +63,7 @@ export class YandexMusicApi {
6363
const resp = await this.client!.landing.getNewPodcasts();
6464
const albumIds = resp.result.podcasts.join(",");
6565
//TODO: need to limit amount of podcasts we receive, 100 at maximum. Currently we load 6000+ podcasts at time.
66-
const podcasts = await this.client!.albums.getByIds({ 'album-ids': albumIds });
66+
const podcasts = await this.client!.albums.getAlbumsByIds({ 'album-ids': albumIds });
6767

6868
return podcasts.result;
6969
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,10 +1269,10 @@ yallist@^4.0.0:
12691269
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
12701270
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
12711271

1272-
yandex-music-client@0.0.6:
1273-
version "0.0.6"
1274-
resolved "https://registry.yarnpkg.com/yandex-music-client/-/yandex-music-client-0.0.6.tgz#5f412d9c00b2cb321c6dbb3f5cbdf2c27ec92138"
1275-
integrity sha512-AcLRew3Yd4fwzJuP0hbv/FeqvlAgTg4BEzgQP75NTw518HQpOLzol14PLz5YpwbdqkU+tInvDXlg/a10dMOZTA==
1272+
yandex-music-client@0.0.7:
1273+
version "0.0.7"
1274+
resolved "https://registry.yarnpkg.com/yandex-music-client/-/yandex-music-client-0.0.7.tgz#f6f91fcfd32a09c940cf033117ba971bd0f312b9"
1275+
integrity sha512-rGSg4wYWc9BqyYta2XDy40ZCK1bFjFsCXPG3NbWh7lf9v3qA9jWW4ZEtwxXkHWc5NMpPBmAdBsw/+Ta0Lqfs9Q==
12761276
dependencies:
12771277
crypto "^1.0.1"
12781278
form-data "^4.0.0"

0 commit comments

Comments
 (0)