mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-04 05:20:54 +08:00
fix: play artist's popular song issue #70
This commit is contained in:
parent
a06afe1468
commit
02c4ee9fb2
@ -32,7 +32,8 @@ export function playPlaylistByID(id, trackID = "first", noCache = false) {
|
||||
|
||||
export function playArtistByID(id, trackID = "first") {
|
||||
getArtist(id).then((data) => {
|
||||
playAList(data.hotSongs, id, "artist", trackID);
|
||||
let trackIDs = data.hotSongs.map((t) => t.id);
|
||||
playAList(trackIDs, id, "artist", trackID);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user