mirror of
https://github.com/gordielachance/plugin.audio.subsonic
synced 2025-01-09 14:44:32 +01:00
snake_case instead camelCase
This commit is contained in:
parent
e8aa3c38a8
commit
16e8f4996e
@ -391,7 +391,7 @@ class SubsonicClient(libsonic.Connection):
|
|||||||
for genre in response["genres"]["genre"]:
|
for genre in response["genres"]["genre"]:
|
||||||
yield genre
|
yield genre
|
||||||
|
|
||||||
def walk_album_list(self, ltype, size=10, fromYear=None,toYear=None, genre=None):
|
def walk_album_list(self, ltype, size=10, from_year=None,to_year=None, genre=None):
|
||||||
"""
|
"""
|
||||||
Request all albums for a given genre and iterate over each album.
|
Request all albums for a given genre and iterate over each album.
|
||||||
"""
|
"""
|
||||||
@ -399,14 +399,14 @@ class SubsonicClient(libsonic.Connection):
|
|||||||
if ltype == 'byGenre' and genre is None:
|
if ltype == 'byGenre' and genre is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
if ltype == 'byYear' and (fromYear is None or toYear is None):
|
if ltype == 'byYear' and (from_year is None or to_year is None):
|
||||||
return
|
return
|
||||||
|
|
||||||
offset = 0
|
offset = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
response = self.getAlbumList2(
|
response = self.getAlbumList2(
|
||||||
ltype=ltype, size=size, offset=offset, fromYear=fromYear, toYear=toYear, genre=genre)
|
ltype=ltype, size=size, offset=offset, from_year=fromYear, to_year=to_year, genre=genre)
|
||||||
|
|
||||||
if not response["albumList2"]["album"]:
|
if not response["albumList2"]["album"]:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user