diff --git a/t_modules/t_main.py b/t_modules/t_main.py index 577ebd45b..38cea14fa 100644 --- a/t_modules/t_main.py +++ b/t_modules/t_main.py @@ -29006,8 +29006,12 @@ def last_fm_box(self, x0, y0, w0, h0): y += round(24 * gui.scale) + old = prefs.launch_spotify_local prefs.launch_spotify_local = self.toggle_square(x, y, prefs.launch_spotify_local, _("Enable local audio playback")) + if prefs.launch_spotify_local != old and prefs.launch_spotify_local: + show_message("Due to Spotify authentication changes, local audio playback may be broken", + "It is highly recommended to disable this setting to avoid your account being locked.", mode="warning") if prefs.launch_spotify_local and not tauon.enable_librespot: show_message("Librespot not installed?") @@ -42183,10 +42187,6 @@ def check_playback_running(self): # thread.daemon = True # thread.start() -# MAIN LOOP--------------------------------------------------------------------------- - - -# print("Almost done...") gui.playlist_view_length = int(((window_size[1] - gui.playlist_top) / 16) - 1) @@ -43350,6 +43350,13 @@ def drop_file(target): c_xay_timer = Timer() rt = 0 + +if prefs.launch_spotify_local: + show_message("Due to Spotify authentication changes, local Spotify audio playback may be broken", + "It is highly recommended to disable this setting to avoid your account being locked.", "See MENU > SETTINGS > ACCOUNT > SPOTIFY > Enable local audio playback.", mode="warning") + +# MAIN LOOP + while pctl.running: # bm.get('main') # time.sleep(100)