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.2: 2026-01-13
2+
3+ * Set Spotify volume when track starts playing (fixes quieter Spotify playback)
4+ * Fix Spotify not stopping on quit or track change (pass device_id to pause)
5+
16### 1.1.1: 2026-01-13
27
38* Require platform-specific Spotify device, exit if not found (never cross-platform fallback)
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.1.1 "
3+ __version__ = "1.1.2 "
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ def play(self, track: Track):
101101 self ._loading = True
102102
103103 # Stop current playback before starting new track
104- if self ._spotify_source :
105- self ._spotify_source .pause_playback ()
104+ if self ._spotify_source and self . _spotify_device_id :
105+ self ._spotify_source .pause_playback (self . _spotify_device_id )
106106 try :
107107 self .mpv .command ('stop' )
108108 except Exception :
@@ -153,6 +153,8 @@ def play(self, track: Track):
153153 # Start local timer for position tracking
154154 self ._spotify_start_time = time .time ()
155155 self ._spotify_paused_position = 0.0
156+ # Set volume on Spotify device
157+ self ._spotify_source .set_volume (self ._current_volume , self ._spotify_device_id )
156158 return
157159
158160 # Play via mpv (YouTube search for Spotify, direct URL for others)
@@ -316,8 +318,8 @@ def on_time_update(self, callback: Callable):
316318 def shutdown (self ):
317319 """Clean shutdown."""
318320 # Stop Spotify Connect playback
319- if self ._spotify_source :
320- self ._spotify_source .pause_playback ()
321+ if self ._spotify_source and self . _spotify_device_id :
322+ self ._spotify_source .pause_playback (self . _spotify_device_id )
321323 # Stop and terminate mpv
322324 try :
323325 self .mpv .command ('stop' )
You can’t perform that action at this time.
0 commit comments