Addon - Check File
This script allows for the remote portal to check if a certain (real) file is available. It is accessed through a password protected HTTP GET call, and can have multiple parameters.
Base URL: http://dorcel.reflector.streaming.in2ip.nl/checkfile.php
Parameters:
- file
contains the filename including directory, for example11111_169/11111_800.mp4 - xml
defines if the result should be ‘plain’ (default) or XML (xml=true)
Returns:
- in non-XML mode:
- 0 when the file exists
- 99 when the file does not exist
- in XML mode:
-
same values as in non-XML mode, but in XML formatting:
<?xml version="1.0" encoding="ISO-8859-1"?> <ServiceResponseCheckFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ServiceResponseCheckFile.xsd"> <resultCode>0</resultCode> <resultDescription>OK - File myvideo.mp4 is available!</resultDescription> <resultUploadDate>2011-07-04 14:46:05</resultUploadDate> </ServiceResponseCheckFile>
-