diff --git a/fhem/FHEM/70_XBMC.pm b/fhem/FHEM/70_XBMC.pm index f3642d5c4..4ea550eaa 100644 --- a/fhem/FHEM/70_XBMC.pm +++ b/fhem/FHEM/70_XBMC.pm @@ -880,7 +880,7 @@ sub XBMC_Set($@) return XBMC_Set_Repeat($hash, @args); } elsif($cmd eq 'seek') { - return XBMC_Set_Seek($hash, $args[0], $args[1], $args[2], @args); + return XBMC_Set_Seek($hash, $args[0], @args); } #RPC referring to the Input http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Input @@ -1160,13 +1160,14 @@ sub XBMC_Set_Stop($@) sub XBMC_Set_Seek($@) { - my ($hash,$hours,$minutes,$seconds,$player) = @_; + my ($hash,$position,$player) = @_; + my ($hours, $minutes, $seconds) = split(/:/, $position); my $obj = { 'method' => 'Player.Seek', 'params' => { 'value' => { 'seconds' => $seconds + 0, - 'minutes' => $minutes +0 , + 'minutes' => $minutes + 0 , 'hours' => $hours + 0 }, 'playerid' => 0 #will be replaced with the active player @@ -1575,7 +1576,7 @@ sub XBMC_HTTP_Request($$@)
  • openepisodeid <path> - Plays an episode by id
  • openchannelid <path> - Switches to channel by id
  • addon <addonid> <parametername> <parametervalue> - Executes addon with one Parameter, for example set xbmc addon script.json-cec command activate
  • -
  • seek <hours> <minutes> <seconds> - seek to the specified time
  • +
  • seek <hh:mm:ss> - seek to the specified time

  • Input related commands: