Alphabetical library ordering; Add to beginning of favourites; Search quickfix

This commit is contained in:
Valentijn 2018-05-27 00:56:50 +02:00
parent 17756cc431
commit 3a6c70e1ae
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,7 @@ hotkeys:
clay_hotkeys:
global:
seek_start: mod + q
play_pause: mod + w
play_pause: mod + p
seek_backward: shift + left
seek_forward: shift + right
quit: mod + x
@ -22,7 +22,6 @@ hotkeys:
library_item:
activate: enter
play: mod + p
append: mod + a
unappend: mod + u
request_station: meta + s

View file

@ -87,7 +87,7 @@ class Track(object):
def __init__(self, source, data):
# In playlist items and user uploaded songs the storeIds are missing so
self.store_id = (data['storeId'] if 'storeId' in data else data['id'])
self.store_id = (data['storeId'] if 'storeId' in data else data.get('id'))
self.playlist_item_id = (UUID(data['id']) if source == self.SOURCE_PLAYLIST else None)
self.library_id = (UUID(data['id']) if source == self.SOURCE_LIBRARY else None)