From 16e8f4996ede8216227bf8d78b175bc37a4a4e25 Mon Sep 17 00:00:00 2001 From: gordielachance Date: Tue, 20 Sep 2016 09:01:45 +0200 Subject: [PATCH] snake_case instead camelCase --- lib/libsonic_extra/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libsonic_extra/__init__.py b/lib/libsonic_extra/__init__.py index cf29f09..0d089e7 100644 --- a/lib/libsonic_extra/__init__.py +++ b/lib/libsonic_extra/__init__.py @@ -391,7 +391,7 @@ class SubsonicClient(libsonic.Connection): for genre in response["genres"]["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. """ @@ -399,14 +399,14 @@ class SubsonicClient(libsonic.Connection): if ltype == 'byGenre' and genre is None: 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 offset = 0 while True: 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"]: break