From 16601a9928d38ab7dad8e257068830ac595eb76d Mon Sep 17 00:00:00 2001 From: janis Date: Mon, 31 Oct 2022 18:26:22 +0100 Subject: [PATCH] fixed the progressbar (again) --- .../__pycache__/comHandler.cpython-310.pyc | Bin 1897 -> 1890 bytes .../__pycache__/csv_parsers.cpython-310.pyc | Bin 4888 -> 4881 bytes showcaseScreen/musicplayer_showcase_screen.py | 11 +++++------ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/showcaseScreen/handlers/__pycache__/comHandler.cpython-310.pyc b/showcaseScreen/handlers/__pycache__/comHandler.cpython-310.pyc index 02d09a86340657d1ff82fac38bb8de2746973fcc..ffda818b027f79c636664403965d7249b50e26a7 100644 GIT binary patch delta 38 scmaFK_lS=xpO=@50SG*gOyv5==cb>LpPQZ_lTpPQ*#N3?Bdh delta 46 zcmbQJHbadopO=@50SIDeZsa=2DC(!5k)NBYpOu)GS*#yWnVgYWlpC=5A)|pH04ezn AHUIzs diff --git a/showcaseScreen/musicplayer_showcase_screen.py b/showcaseScreen/musicplayer_showcase_screen.py index 30294e9..7fbda0a 100644 --- a/showcaseScreen/musicplayer_showcase_screen.py +++ b/showcaseScreen/musicplayer_showcase_screen.py @@ -70,13 +70,12 @@ class ShowcaseScreen(MDScreen): self.__current = comHandler.getcurrentsong(address) self.__upcoming = comHandler.getupcomingsongs(address) self.songlength = comHandler.getsonglength(address) + elif self.songpos > self.lastsongpos: + self.isplaying = True + elif self.songpos == self.lastsongpos: + self.isplaying = False else: - if self.songpos > self.lastsongpos: - self.isplaying = True - elif self.songpos == self.lastsongpos: - self.isplaying = False - else: - pass + pass self.lastsongpos = self.songpos self.ids.current_song.text = self.__current self.ids.upcoming_songs.text = self.__upcoming