fix(spotify): Don't report player state if spotify api doesn't return an item

It's not useful to the stateful player to return a player state without an item

#412
This commit is contained in:
FoxxMD
2025-12-12 21:14:09 +00:00
parent 4a364ce766
commit f0ac53ffff
+1 -1
View File
@@ -406,7 +406,7 @@ export default class SpotifySource extends MemoryPositionalSource {
progress_ms,
} = {}
} = res;
if(device !== undefined) {
if(device !== undefined && item !== undefined && item !== null) {
let status: ReportedPlayerStatus = 'stopped';
if(is_playing) {
status = 'playing';