Fix listing albums by genre
This commit is contained in:
parent
29d77244fc
commit
022d7e8f06
1 changed files with 2 additions and 1 deletions
|
@ -453,12 +453,13 @@ class SubsonicApi:
|
|||
def get_raw_albums_by_genre(self, genre):
|
||||
try:
|
||||
response = self.connection.getAlbumList2(
|
||||
ltype='genre', size=size, offset=0, genre=genre
|
||||
ltype='byGenre', genre=genre
|
||||
)
|
||||
except Exception:
|
||||
logger.warning(
|
||||
"Connecting to subsonic failed when loading genre album list."
|
||||
)
|
||||
logging.exception('')
|
||||
return []
|
||||
if response.get("status") != RESPONSE_OK:
|
||||
logger.warning(
|
||||
|
|
Loading…
Add table
Reference in a new issue