File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 274
274
"extract-zip" : " ^2.0.1" ,
275
275
"mobx" : " ^5.15.4" ,
276
276
"open" : " ^7.0.3" ,
277
- "yandex-music-client" : " 0.0.6 "
277
+ "yandex-music-client" : " 0.0.7 "
278
278
}
279
279
}
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ export class YandexMusicApi {
46
46
async getNewReleases ( ) : Promise < Album [ ] > {
47
47
const resp = await this . client ! . landing . getNewReleases ( ) ;
48
48
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 } ) ;
50
50
51
51
return albums . result ;
52
52
}
53
53
54
54
async getNewPlayLists ( ) : Promise < Playlist [ ] > {
55
55
const resp = await this . client ! . landing . getNewPlaylists ( ) ;
56
56
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 } ) ;
58
58
59
59
return playListsResp . result ;
60
60
}
@@ -63,7 +63,7 @@ export class YandexMusicApi {
63
63
const resp = await this . client ! . landing . getNewPodcasts ( ) ;
64
64
const albumIds = resp . result . podcasts . join ( "," ) ;
65
65
//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 } ) ;
67
67
68
68
return podcasts . result ;
69
69
}
Original file line number Diff line number Diff line change @@ -1269,10 +1269,10 @@ yallist@^4.0.0:
1269
1269
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
1270
1270
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
1271
1271
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 ==
1276
1276
dependencies :
1277
1277
crypto "^1.0.1"
1278
1278
form-data "^4.0.0"
You can’t perform that action at this time.
0 commit comments