subclient

Subsonic ncurses client
git clone https://git.e1e0.net/subclient.git
Log | Files | Refs | README

commit ee60b1aba00501f54c01387f974c02d11a404889
parent 57c39d3720a6e160942c00b4b6a43a3d7d554108
Author: Paco Esteban <paco@e1e0.net>
Date:   Sun, 24 Oct 2021 19:31:16 +0200

guard artist/album/song navigation

Diffstat:
Msubclient/subclient.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/subclient/subclient.py b/subclient/subclient.py @@ -201,6 +201,12 @@ class SubClient: def nav_in_out(self, direction): self.nav_list_type += direction + if self.nav_list_type > self.SONGS: + self.nav_list_type = self.SONGS + return + if self.nav_list_type < self.ARTISTS: + self.nav_list_type = self.ARTISTS + return # we keep track of the artist, which is the only thing we need really # if is None we get it from the current list, and we reset it to None