File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ### 1.1.0: 2026-01-08
2+
3+ * Suppress Spotify API HTTP errors from flooding console output
4+
15### 1.0.10: 2026-01-07
26
37* Auto-start spotifyd if not running on launch
Original file line number Diff line number Diff line change 11"""OmniShuffle - Unified music shuffler for Spotify, Pandora, and YouTube Music."""
22
3- __version__ = "1.0.10 "
3+ __version__ = "1.1.0 "
Original file line number Diff line number Diff line change @@ -676,6 +676,7 @@ def run(self):
676676
677677 if key == 'q' :
678678 self .running = False
679+ break
679680 elif key == 'n' :
680681 self .play_next ()
681682 elif key == 'p' or key == ' ' :
Original file line number Diff line number Diff line change @@ -100,12 +100,8 @@ def play(self, track: Track):
100100 self ._loading = True
101101
102102 # Stop current playback before starting new track
103- # Always try to pause Spotify (not just when _using_spotify_connect)
104103 if self ._spotify_source :
105- try :
106- self ._spotify_source .pause_playback ()
107- except Exception :
108- pass
104+ self ._spotify_source .pause_playback ()
109105 try :
110106 self .mpv .command ('stop' )
111107 except Exception :
@@ -190,10 +186,7 @@ def stop(self):
190186 """Stop playback."""
191187 self ._using_spotify_connect = False
192188 if self ._spotify_source :
193- try :
194- self ._spotify_source .pause_playback () # No device_id = pause active device
195- except Exception :
196- pass
189+ self ._spotify_source .pause_playback ()
197190 try :
198191 self .mpv .stop ()
199192 except Exception :
@@ -321,10 +314,7 @@ def shutdown(self):
321314 """Clean shutdown."""
322315 # Stop Spotify Connect playback
323316 if self ._spotify_source :
324- try :
325- self ._spotify_source .pause_playback () # No device_id = pause active device
326- except Exception :
327- pass
317+ self ._spotify_source .pause_playback ()
328318 # Stop and terminate mpv
329319 try :
330320 self .mpv .command ('stop' )
Original file line number Diff line number Diff line change 11"""Spotify music source using spotipy and librespot for direct streaming."""
22
3+ import logging
34import os
45import subprocess
56import tempfile
910from omnishuffle .player import Track
1011from omnishuffle .sources .base import MusicSource
1112
13+ # Suppress spotipy HTTP error logging
14+ logging .getLogger ("spotipy.client" ).setLevel (logging .CRITICAL )
15+ logging .getLogger ("urllib3" ).setLevel (logging .CRITICAL )
16+
1217try :
1318 import spotipy
1419 from spotipy .oauth2 import SpotifyOAuth
You can’t perform that action at this time.
0 commit comments