Skip to content

Commit 10295a1

Browse files
Always pause Spotify when switching tracks
1 parent 892b145 commit 10295a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

omnishuffle/player.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ def play(self, track: Track):
100100
self._loading = True
101101

102102
# Stop current playback before starting new track
103-
if self._using_spotify_connect and self._spotify_source:
103+
# Always try to pause Spotify (not just when _using_spotify_connect)
104+
if self._spotify_source:
104105
try:
105-
self._spotify_source.pause_playback() # No device_id = pause active device
106+
self._spotify_source.pause_playback()
106107
except Exception:
107108
pass
108109
try:

0 commit comments

Comments
 (0)