mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-09-03 05:10:00 +03:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user