Skip to content

Commit

Permalink
Speed up artist quickplay
Browse files Browse the repository at this point in the history
Cut 1 second off playback of artist with 138 songs
  • Loading branch information
1hitsong committed Oct 7, 2024
1 parent 7131051 commit 291d516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/utils/quickplay.bs
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ namespace quickplay
artistSongs = api.users.GetItemsByQuery(m.global.session.user.id, {
"artistIds": itemNode.id,
"includeItemTypes": "Audio",
"sortBy": "Album",
"sortBy": "random",
"limit": 2000,
"imageTypeLimit": 1,
"Recursive": true,
"enableUserData": false,
"EnableTotalRecordCount": false
})
print "artistSongs=", artistSongs

if isValid(artistSongs) and isValidAndNotEmpty(artistSongs.items)
quickplay.pushToQueue(artistSongs.items, true)
m.global.queueManager.callFunc("set", artistSongs.items)
m.global.queueManager.callFunc("toggleShuffle")
else
stopLoadingSpinner()
end if
Expand Down

0 comments on commit 291d516

Please sign in to comment.