Skip to content

Commit

Permalink
random playlists bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lusum committed Dec 4, 2019
1 parent 01738ae commit 236a514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion default.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ def get_random(object_type):
#if items are less than random_itmes, return all items
get_items(object_type, limit=items)
return
if(int(ampache.getSetting("api-version"))) > 400001:
#playlists are not in the new stats api, so, use the old mode
if(int(ampache.getSetting("api-version"))) > 400001 and object_type != 'playlists':
action = 'stats'
filter = 'random'
try:
Expand Down

0 comments on commit 236a514

Please sign in to comment.