mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: play artist's popular song issue #70
This commit is contained in:
parent
a06afe1468
commit
02c4ee9fb2
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ export function playPlaylistByID(id, trackID = "first", noCache = false) {
|
||||||
|
|
||||||
export function playArtistByID(id, trackID = "first") {
|
export function playArtistByID(id, trackID = "first") {
|
||||||
getArtist(id).then((data) => {
|
getArtist(id).then((data) => {
|
||||||
playAList(data.hotSongs, id, "artist", trackID);
|
let trackIDs = data.hotSongs.map((t) => t.id);
|
||||||
|
playAList(trackIDs, id, "artist", trackID);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue