Skip to content

Commit

Permalink
fetch genre for songs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnKaijser committed Feb 15, 2014
1 parent dd1ed6f commit df32f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/requests.py
Expand Up @@ -130,7 +130,7 @@ def artist(self, request):
return False

def songs(self, request):
json_string = '{"jsonrpc": "2.0", "id": 1, "method": "AudioLibrary.GetSongs", "params": {"properties": ["title", "playcount", "artist", "album", "year", "file", "thumbnail", "fanart", "rating"], "filter": {"field": "playcount", "operator": "lessthan", "value": "1"}, "limits": {"end": %d},' %LIMIT
json_string = '{"jsonrpc": "2.0", "id": 1, "method": "AudioLibrary.GetSongs", "params": {"properties": ["title", "playcount", "genre", "artist", "album", "year", "file", "thumbnail", "fanart", "rating"], "filter": {"field": "playcount", "operator": "lessthan", "value": "1"}, "limits": {"end": %d},' %LIMIT
if request == 'RandomSong' and RANDOMITEMS_UNPLAYED == "True":
json_query = xbmc.executeJSONRPC('%s "sort": {"method": "random"}}}' %json_string)
else:
Expand Down

0 comments on commit df32f7e

Please sign in to comment.