match py-sonic variable names
This commit is contained in:
parent
5c1ba5015b
commit
32f706ffbe
|
@ -411,13 +411,13 @@ class SubsonicClient(libsonic.Connection):
|
||||||
for song in response["album"]["song"]:
|
for song in response["album"]["song"]:
|
||||||
yield song
|
yield song
|
||||||
|
|
||||||
def walk_tracks_random(self, size, genre=None, from_year=None,to_year=None):
|
def walk_tracks_random(self, size=None, genre=None, fromYear=None,toYear=None):
|
||||||
"""
|
"""
|
||||||
Request random songs by genre and/or year and iterate over each song.
|
Request random songs by genre and/or year and iterate over each song.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
response = self.getRandomSongs(
|
response = self.getRandomSongs(
|
||||||
size=size, genre=genre, fromYear=from_year, toYear=to_year)
|
size=size, genre=genre, fromYear=fromYear, toYear=toYear)
|
||||||
|
|
||||||
for song in response["randomSongs"]["song"]:
|
for song in response["randomSongs"]["song"]:
|
||||||
yield song
|
yield song
|
||||||
|
|
Loading…
Reference in New Issue