diff --git a/fhem/FHEM/37_Spotify.pm b/fhem/FHEM/37_Spotify.pm index a687319fe..73d513fc1 100644 --- a/fhem/FHEM/37_Spotify.pm +++ b/fhem/FHEM/37_Spotify.pm @@ -575,7 +575,8 @@ sub Spotify_play($$$$$) { # any play command (colleciton or track) $data = {uris => $uris}; } else { - $data = {context_uri => $context_uri, offset => {position => $position-1}}; + $data = {context_uri => $context_uri}; + $data->{offset} = {position => $position-1} if($position > 1); } $device_id = Spotify_getTargetDeviceID($hash, $device_id, 1);