From 3a6c70e1aeaa9772ac3ae30506d7579faef57659 Mon Sep 17 00:00:00 2001 From: Valentijn Date: Sun, 27 May 2018 00:56:50 +0200 Subject: [PATCH] Alphabetical library ordering; Add to beginning of favourites; Search quickfix --- clay/config.yaml | 3 +-- clay/gp.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/clay/config.yaml b/clay/config.yaml index 0f60be5..c576f70 100644 --- a/clay/config.yaml +++ b/clay/config.yaml @@ -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 diff --git a/clay/gp.py b/clay/gp.py index b994570..2fb8c96 100644 --- a/clay/gp.py +++ b/clay/gp.py @@ -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)