70_XBMC: changed seek parameter format

git-svn-id: https://svn.fhem.de/fhem/trunk@12523 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vbs2 2016-11-07 20:03:50 +00:00
parent 3d2d2f1544
commit b32713a97c

View File

@ -880,7 +880,7 @@ sub XBMC_Set($@)
return XBMC_Set_Repeat($hash, @args); return XBMC_Set_Repeat($hash, @args);
} }
elsif($cmd eq 'seek') { 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 #RPC referring to the Input http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Input
@ -1160,7 +1160,8 @@ sub XBMC_Set_Stop($@)
sub XBMC_Set_Seek($@) sub XBMC_Set_Seek($@)
{ {
my ($hash,$hours,$minutes,$seconds,$player) = @_; my ($hash,$position,$player) = @_;
my ($hours, $minutes, $seconds) = split(/:/, $position);
my $obj = { my $obj = {
'method' => 'Player.Seek', 'method' => 'Player.Seek',
'params' => { 'params' => {
@ -1575,7 +1576,7 @@ sub XBMC_HTTP_Request($$@)
<li><b>openepisodeid &lt;path&gt;</b> - Plays an episode by id</li> <li><b>openepisodeid &lt;path&gt;</b> - Plays an episode by id</li>
<li><b>openchannelid &lt;path&gt;</b> - Switches to channel by id</li> <li><b>openchannelid &lt;path&gt;</b> - Switches to channel by id</li>
<li><b>addon &lt;addonid&gt; &lt;parametername&gt; &lt;parametervalue&gt;</b> - Executes addon with one Parameter, for example set xbmc addon script.json-cec command activate</li> <li><b>addon &lt;addonid&gt; &lt;parametername&gt; &lt;parametervalue&gt;</b> - Executes addon with one Parameter, for example set xbmc addon script.json-cec command activate</li>
<li><b>seek &lt;hours&gt; &lt;minutes&gt; &lt;seconds&gt;</b> - seek to the specified time</li> <li><b>seek &lt;hh:mm:ss&gt;</b> - seek to the specified time</li>
</ul> </ul>
<br>Input related commands:<br> <br>Input related commands:<br>
<ul> <ul>