2013-04-20, 20:11
I use XBMC on my Windows-PC to start movies on my Dune-Player - witch works fine.
For this I have this playercorefactory.xml
witch call my Dune.bat and starts the movie over wget:
On my Ipad i have installed wget. But it is no windows machine - so the bat don't work.
How i make this ?
For this I have this playercorefactory.xml
Code:
<player name="DUNE" type="ExternalPlayer" audio="false" video="true">
<filename>Dune.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<forceontop>true</forceontop>
<playcountminimumtime>600</playcountminimumtime>
</player>
witch call my Dune.bat and starts the movie over wget:
Code:
@echo off
SET var=%1
ECHO %var%|find ".mkv"
IF errorlevel 1 goto TRY2
GOTO MKV
:TRY2
ECHO %var%|find ".mpls"
IF errorlevel 1 goto END
GOTO BDMV
:MKV
SET STRING=%1
SET STRING=%STRING:"=%
SET STRING=%STRING:~0,-25%
c:\Tools\wget.exe "192.168.1.33:80/cgi-bin/do?cmd=start_file_playback&media_url=%STRING%"
GOTO END
:BDMV
SET STRING=%1
SET STRING=%STRING:"=%
SET STRING=%STRING:~0,-25%
c:\Tools\wget.exe "192.168.1.33:80/cgi-bin/do?cmd=launch_media_url&media_url=%STRING%"
GOTO END
:END
On my Ipad i have installed wget. But it is no windows machine - so the bat don't work.
How i make this ?