Add to queue random functional

This commit is contained in:
James Barnsley
2020-08-03 20:42:17 +12:00
parent f4c71026b7
commit 48adeeac7f
10 changed files with 237 additions and 132 deletions

View File

@ -455,13 +455,18 @@ export function getDirectory(uri) {
};
}
export function getTrack(uri) {
export function getTracks(uris, get_images) {
return {
type: 'MOPIDY_GET_TRACK',
uri,
type: 'MOPIDY_GET_TRACKS',
uris,
get_images,
};
}
export function getTrack(uri) {
return getTracks([uri], true);
}
export function getLibraryArtists(uri = null) {
return {
type: 'MOPIDY_GET_LIBRARY_ARTISTS',
@ -530,9 +535,9 @@ export function cancelProcessor(processor) {
};
}
export function addToQueue_getRandomTracks(limit = 100) {
export function view_getRandomTracks(limit = 100) {
return {
type: 'ADD_TO_QUEUE__GET_RANDOM_TRACKS',
type: 'VIEW__GET_RANDOM_TRACKS',
limit,
};
}