From 11d222c1dd5cfb1c6ec80337d25a1b6010e9087d Mon Sep 17 00:00:00 2001 From: neumann Date: Fri, 9 Jun 2017 05:33:50 +0000 Subject: [PATCH] 37_Spotify: fixed artist git-svn-id: https://svn.fhem.de/fhem/trunk@14484 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/37_Spotify.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);