Myth Protocol Command GET RECORDER NUM

From MythTV

Jump to: navigation, search

Contents

GET_RECORDER_NUM

Arguments

Command arguments: none

List arguments: ProgramInfo

Examples

Command:

GET_RECORDER_NUM[]:[] ??? 

Successful response:

2[]:[]192.168.1.110[]:[]6543

Unsuccessful response:

-1[]:[]nohost[]:[]-1

Description

Asks the backend for a recorder that matches the program info passed in. The host address and port returned may not be on the originally queried host, if slave backends are used. If the recorder is not valid, -1 will be returned for the port and the host will be "nohost". Note that this does not check to see of the recorder is busy or locked.

The ProgramInfo is a combination of a large collection of attributes. These can be seen in /libs/libmythtv/programinfo.cpp in the function ProgramInfo::FromStringList

Returns

The recorder id, the host address of the backend to connect to, and the port of the backend to connect to

Personal tools