From 545536f63a3653b5d10dc108c20377eba7682304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindri=20Gu=C3=B0mundsson?= Date: Sun, 3 Apr 2016 22:11:40 +0000 Subject: [PATCH 1/3] Fix error when just logged in This fixes #94 --- spoppy/navigation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spoppy/navigation.py b/spoppy/navigation.py index 53d6974..dea2cd8 100644 --- a/spoppy/navigation.py +++ b/spoppy/navigation.py @@ -25,13 +25,15 @@ def __init__(self, username, password): self.player = Player(self) self.lifecycle = LifeCycle(username, password, self.player) self.session = None + self.lifecycle.check_spotipy_logged_in() self.spotipy_client = self.lifecycle.get_spotipy_client() + self.navigating = True logger.debug('Leifur initialized') def refresh_spotipy_client(self): - self.spotipy_client = self.lifecycle.get_pyspotify_client() + self.spotipy_client = self.lifecycle.get_spotipy_client() def start(self): if self.lifecycle.check_pyspotify_logged_in(): From 23baa004ab761caef770055b4764404cdce67040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindri=20Gu=C3=B0mundsson?= Date: Sun, 3 Apr 2016 22:12:33 +0000 Subject: [PATCH 2/3] Come on, this should have been caught by tests... --- spoppy/menus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spoppy/menus.py b/spoppy/menus.py index d718258..1790d28 100644 --- a/spoppy/menus.py +++ b/spoppy/menus.py @@ -323,7 +323,7 @@ def get_mock_playlist_name(self): def shuffle_play(self): self.navigator.player.load_playlist( - self.get_mock_playlist, + self.get_mock_playlist(), shuffle=True ) self.navigator.player.play_current_song() From e624457f359d1ad84df46a88aaa4def99eaf062f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindri=20Gu=C3=B0mundsson?= Date: Sun, 3 Apr 2016 22:13:40 +0000 Subject: [PATCH 3/3] Fix two fucking bugs --- spoppy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spoppy/__init__.py b/spoppy/__init__.py index b6fee96..83575ff 100644 --- a/spoppy/__init__.py +++ b/spoppy/__init__.py @@ -10,7 +10,7 @@ def get_version(): - return '1.4.0' + return '1.4.1' if click: @click.command()