From 7eff5ce6bd8e494757333136b1da16c656a84542 Mon Sep 17 00:00:00 2001 From: project-owner Date: Tue, 24 Sep 2019 21:19:54 -0700 Subject: [PATCH] Holbein Edition --- ui/menu/stationmenu.py | 1 + ui/screen/bookplayer.py | 3 ++- ui/screen/fileplayer.py | 1 + ui/screen/podcastplayer.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/menu/stationmenu.py b/ui/menu/stationmenu.py index bdf72553..26b98d4b 100644 --- a/ui/menu/stationmenu.py +++ b/ui/menu/stationmenu.py @@ -257,6 +257,7 @@ def set_station(self, index, save=True): :param save: flag defining if index should be saved in configuration object, True - save, False - don't save """ try: + self.config[PLAYER_SETTINGS][PAUSE] = False self.init_station(index) self.draw() self.button.state.volume = self.config[PLAYER_SETTINGS][VOLUME] diff --git a/ui/screen/bookplayer.py b/ui/screen/bookplayer.py index ea236582..f0d1e9f3 100644 --- a/ui/screen/bookplayer.py +++ b/ui/screen/bookplayer.py @@ -187,7 +187,8 @@ def set_audio_file(self, new_track, s=None): t = self.playlist[i] url = t["mp3"] name = t["title"] - + + self.config[PLAYER_SETTINGS][PAUSE] = False state.file_name = name self.config[AUDIOBOOKS][BROWSER_TRACK_FILENAME] = t["file_name"] state.mute = self.config[PLAYER_SETTINGS][MUTE] diff --git a/ui/screen/fileplayer.py b/ui/screen/fileplayer.py index a45329ee..52470769 100644 --- a/ui/screen/fileplayer.py +++ b/ui/screen/fileplayer.py @@ -540,6 +540,7 @@ def set_audio_file(self, new_track, s=None): self.config[CD_PLAYBACK][CD_DRIVE_ID] = int(id) self.config[CD_PLAYBACK][CD_TRACK] = int(parts[1].split("=")[1]) + self.config[PLAYER_SETTINGS][PAUSE] = False state.mute = self.config[PLAYER_SETTINGS][MUTE] state.pause = self.config[PLAYER_SETTINGS][PAUSE] state.file_type = FILE_AUDIO diff --git a/ui/screen/podcastplayer.py b/ui/screen/podcastplayer.py index 56218f67..699b7a1a 100644 --- a/ui/screen/podcastplayer.py +++ b/ui/screen/podcastplayer.py @@ -133,6 +133,7 @@ def set_audio_file(self, new_track, s=None): else: state.url = s.url + self.config[PLAYER_SETTINGS][PAUSE] = False state.mute = self.config[PLAYER_SETTINGS][MUTE] state.pause = self.config[PLAYER_SETTINGS][PAUSE] state.file_type = FILE_AUDIO