Browse Source

Workaround when no sortable title available

podcasts
dave 5 years ago
parent
commit
7c13750b4a
  1. 2
      pysonic/api.py

2
pysonic/api.py

@ -107,7 +107,7 @@ class PysonicApi(object):
if type == "random":
shuffle(albums)
elif type == "alphabeticalByName":
albums.sort(key=lambda item: item.get("id3_album", item["album"]))
albums.sort(key=lambda item: item.get("id3_album", item["album"] if item["album"] else "zzzzzUnsortable"))
else:
raise NotImplemented()
albumset = albums[0 + int(offset):int(size) + int(offset)]

Loading…
Cancel
Save