QUERY CHECKFILE (Myth Protocol)
Contents |
QUERY_CHECKFILE
Arguments
Command arguments: none
List arguments: <bool:checkslaves> <ProgramInfo>
Examples
Command:
QUERY_CHECKFILE[]:[]1[]:[]DTV Program[]:[][]:[]DTV Program[]:[][]:[]1042[]:[]4.2[]:[]WxPlus[]:[]WxPlus[]:[]myth://10.10.10.250:6543/1042_20070516195230.mpg[]:[]0[]:[]0[]:[]1179358186[]:[]1179359986[]:[]0[]:[]0[]:[]0[]:[]cartman[]:[]0[]:[]0[]:[]0[]:[]0[]:[]-3[]:[]0[]:[]0[]:[]15[]:[]6[]:[]1179359550[]:[]1179359986[]:[]0[]:[]4[]:[]LiveTV[]:[]0[]:[][]:[][]:[][]:[]1179359550[]:[]0.000000[]:[]1900-01-01[]:[]0[]:[]Default[]:[]0[]:[]0[]:[]LiveTV
Successful response:
1[]:[]/mythtv/1042_20070516195230.mpg
Description
Asks the backend to check the file information on the program. The checkslaves parameter should be 1 to request that the query should be passed on to the slave backend (given by the hostname field in the ProgramInfo) and return a URI or 0 to ignore this field and check only on the local machine returning a file path.
Apart from the hostname as described above, as of version 0.22 only the chanid and recstartts fields of the specified ProgramInfo record are used to determine the program to be checked. The command can thus be used as a mapping between chanid + recstartts and the path to the recording.
Returns
1 and the file path (or URI if checkslaves is set) of the file if it is exists, or 0 and an empty filename if the file cannot be found.