Skip to content

Commit

Permalink
use albumartist instead of mb_albumartistid to resolve issue rawdlite#9
Browse files Browse the repository at this point in the history
  • Loading branch information
mfremont committed Mar 29, 2018
1 parent cc45ac5 commit 5c1af85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mopidy_beetslocal/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def browse(self, uri):
None,
'artist',
dict(genre=query['genre'][0],
artist=row[1])),
artist=row[0])),
name=row[0] if bool(row[0]) else u'No Artist'))
elif level == "artist":
for album in self._browse_album(query):
Expand Down Expand Up @@ -201,11 +201,11 @@ def _browse_track(self, query):

def _browse_album(self, query):
logger.debug(u'browse_album query: %s' % query)
return self.lib.albums('mb_albumartistid:\'%s\' genre:\'%s\''
return self.lib.albums('albumartist:\'%s\' genre:\'%s\''
% (query['artist'][0], query['genre'][0]))

def _browse_artist(self, query=None):
statement = 'select Distinct albumartist, mb_albumartistid from albums'
statement = 'select Distinct albumartist from albums'
if query:
statement += ' where 1=1 '
statement += self._build_statement(query, 'genre', 'genre')
Expand Down

0 comments on commit 5c1af85

Please sign in to comment.