mirror of
https://github.com/vale981/clay
synced 2025-03-05 09:31:40 -05:00
Alphabetical library ordering; Add to beginning of favourites; Search quickfix
This commit is contained in:
parent
17756cc431
commit
3a6c70e1ae
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue