Commit 89c2e85
authored
fix/stop (#10)
don't attempt to stop spotify players unless they are active
avoids error logs of the sort
```
2024-07-17 16:57:23.683 - audio - ovos_audio.audio:shutdown:567 - INFO - shutting down OpenVoiceOS-TV
2024-07-17 16:57:25.053 - audio - ovos_audio.audio:shutdown:570 - ERROR - shutdown of OpenVoiceOS-TV failed: SpotifyException(404, -1, 'https://api.spotify.com/v1/me/player/pause?device_id=OpenVoiceOS-TV:\n Device not found')
2024-07-17 16:57:25.053 - audio - ovos_audio.audio:shutdown:567 - INFO - shutting down spotify-OpenVoiceOS-TV
HTTP Error for PUT to https://api.spotify.com/v1/me/player/pause?device_id=OpenVoiceOS-TV with Params: {} returned 404 due to Device not found
```1 parent bfeabf8 commit 89c2e85
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
0 commit comments