Renaming album/artist fetchers
This commit is contained in:
@ -8,7 +8,7 @@ from frontend import IrisFrontend
|
||||
from http import RequestHandler
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
__version__ = '2.11.0'
|
||||
__version__ = '2.11.1'
|
||||
|
||||
##
|
||||
# Core extension class
|
||||
|
||||
@ -186,9 +186,9 @@ export function getArtist( uri ){
|
||||
}
|
||||
}
|
||||
|
||||
export function getArtists(){
|
||||
export function getLibraryArtists(){
|
||||
return {
|
||||
type: 'MOPIDY_GET_ARTISTS'
|
||||
type: 'MOPIDY_GET_LIBRARY_ARTISTS'
|
||||
}
|
||||
}
|
||||
|
||||
@ -206,9 +206,9 @@ export function getAlbums( uris ){
|
||||
}
|
||||
}
|
||||
|
||||
export function getLocalAlbums(){
|
||||
export function getLibraryAlbums(){
|
||||
return {
|
||||
type: 'MOPIDY_GET_LOCAL_ALBUMS'
|
||||
type: 'MOPIDY_GET_LIBRARY_ALBUMS'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -544,7 +544,7 @@ const MopidyMiddleware = (function(){
|
||||
* ======================================================================================
|
||||
**/
|
||||
|
||||
case 'MOPIDY_GET_LOCAL_ALBUMS':
|
||||
case 'MOPIDY_GET_LIBRARY_ALBUMS':
|
||||
instruct( socket, store, 'library.browse', { uri: 'local:directory?type=album' } )
|
||||
.then( response => {
|
||||
|
||||
@ -658,7 +658,7 @@ const MopidyMiddleware = (function(){
|
||||
* ======================================================================================
|
||||
**/
|
||||
|
||||
case 'MOPIDY_GET_ARTISTS':
|
||||
case 'MOPIDY_GET_LIBRARY_ARTISTS':
|
||||
store.dispatch({ type: 'LOCAL_ARTISTS_LOADED', data: false });
|
||||
instruct( socket, store, 'library.browse', { uri: 'local:directory?type=artist' } )
|
||||
.then( response => {
|
||||
|
||||
@ -32,7 +32,7 @@ class LibraryLocalAlbums extends React.Component{
|
||||
|
||||
loadAlbums(props = this.props){
|
||||
if (props.mopidy_connected && !this.props.local_albums){
|
||||
this.props.mopidyActions.getLocalAlbums();
|
||||
this.props.mopidyActions.getLibraryAlbums();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ class LibraryLocalArtists extends React.Component{
|
||||
|
||||
loadArtists(props = this.props){
|
||||
if( props.mopidy_connected && !props.local_artists ){
|
||||
this.props.mopidyActions.getArtists();
|
||||
this.props.mopidyActions.getLibraryArtists();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user