Add/Remove to libraries; Almost ready to bring in to dev pipeline

This commit is contained in:
James Barnsley
2020-09-26 23:03:28 +12:00
parent 3a6d243430
commit 6f6ec6986b
21 changed files with 291 additions and 226 deletions

View File

@ -431,10 +431,11 @@ export function getLibraryPlaylists() {
return { type: 'MOPIDY_GET_LIBRARY_PLAYLISTS' };
}
export function getPlaylist(uri) {
export function getPlaylist(uri, options) {
return {
type: 'MOPIDY_GET_PLAYLIST',
data: { uri },
uri,
options,
};
}
@ -478,10 +479,11 @@ export function clearLibraryArtists() {
};
}
export function getArtist(uri) {
export function getArtist(uri, options) {
return {
type: 'MOPIDY_GET_ARTIST',
uri,
options,
};
}
@ -493,10 +495,11 @@ export function getArtists(uris, processor = null) {
};
}
export function getAlbum(uri) {
export function getAlbum(uri, options) {
return {
type: 'MOPIDY_GET_ALBUM',
uri,
options,
};
}