Skip to content

Commit 759f4ef

Browse files
committed
Renaming album/artist fetchers
1 parent 095206f commit 759f4ef

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

mopidy_iris/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from http import RequestHandler
99

1010
logger = logging.getLogger(__name__)
11-
__version__ = '2.11.0'
11+
__version__ = '2.11.1'
1212

1313
##
1414
# Core extension class

src/js/services/mopidy/actions.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ export function getArtist( uri ){
186186
}
187187
}
188188

189-
export function getArtists(){
189+
export function getLibraryArtists(){
190190
return {
191-
type: 'MOPIDY_GET_ARTISTS'
191+
type: 'MOPIDY_GET_LIBRARY_ARTISTS'
192192
}
193193
}
194194

@@ -206,9 +206,9 @@ export function getAlbums( uris ){
206206
}
207207
}
208208

209-
export function getLocalAlbums(){
209+
export function getLibraryAlbums(){
210210
return {
211-
type: 'MOPIDY_GET_LOCAL_ALBUMS'
211+
type: 'MOPIDY_GET_LIBRARY_ALBUMS'
212212
}
213213
}
214214

src/js/services/mopidy/middleware.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ const MopidyMiddleware = (function(){
544544
* ======================================================================================
545545
**/
546546

547-
case 'MOPIDY_GET_LOCAL_ALBUMS':
547+
case 'MOPIDY_GET_LIBRARY_ALBUMS':
548548
instruct( socket, store, 'library.browse', { uri: 'local:directory?type=album' } )
549549
.then( response => {
550550

@@ -658,7 +658,7 @@ const MopidyMiddleware = (function(){
658658
* ======================================================================================
659659
**/
660660

661-
case 'MOPIDY_GET_ARTISTS':
661+
case 'MOPIDY_GET_LIBRARY_ARTISTS':
662662
store.dispatch({ type: 'LOCAL_ARTISTS_LOADED', data: false });
663663
instruct( socket, store, 'library.browse', { uri: 'local:directory?type=artist' } )
664664
.then( response => {

src/js/views/library/LibraryLocalAlbums.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LibraryLocalAlbums extends React.Component{
3232

3333
loadAlbums(props = this.props){
3434
if (props.mopidy_connected && !this.props.local_albums){
35-
this.props.mopidyActions.getLocalAlbums();
35+
this.props.mopidyActions.getLibraryAlbums();
3636
}
3737
}
3838

src/js/views/library/LibraryLocalArtists.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LibraryLocalArtists extends React.Component{
2828

2929
loadArtists(props = this.props){
3030
if( props.mopidy_connected && !props.local_artists ){
31-
this.props.mopidyActions.getArtists();
31+
this.props.mopidyActions.getLibraryArtists();
3232
}
3333
}
3434

0 commit comments

Comments
 (0)