Skip to content

Commit

Permalink
Add spotify warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Aug 29, 2024
1 parent 5043b6d commit 75ec7a3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?")
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 75ec7a3

Please sign in to comment.