Difference between revisions of "QUERY RECORDINGS (Myth Protocol)"
From MythTV Official Wiki
m (shift link) |
(Update for changes in 0.24 and pre-0.25 development) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 10: | Line 10: | ||
=== Examples === | === Examples === | ||
Command: | Command: | ||
− | 21 QUERY_RECORDINGS | + | 21 QUERY_RECORDINGS Ascending |
Response: | Response: | ||
18988 26[]:[]$40-a-day[]:[]Cape Cod[]:[]... | 18988 26[]:[]$40-a-day[]:[]Cape Cod[]:[]... | ||
=== Description === | === Description === | ||
− | Queries a list of recordings in the system | + | Queries a list of recordings in the system. Query type is case-sensitive. |
− | Valid types are: | + | Valid types are (protocol versions 65+): |
− | *Recording: | + | *Recording: Returns in-progress recordings, unsorted |
− | *Delete: Returns | + | *Descending (or Delete, deprecated): Returns all recordings in descending order, based on start time |
− | *Play (or anything else): Returns all | + | *Ascending (or Play, deprecated): Returns all recordings in ascending order, based on start time |
+ | *Unsorted (or anything else): Returns all recordings, unsorted | ||
+ | |||
+ | |||
+ | For protocol versions 57 - 64, valid types are: | ||
+ | *Recording: Returns in-progress recordings, unsorted | ||
+ | *Play (or anything else): Returns all recordings, unsorted | ||
+ | |||
+ | |||
+ | For protocol versions 1 - 56, valid types are: | ||
+ | *Recording: Returns in-progress recordings in ascending order, based on start time | ||
+ | *Delete: Returns all recordings in descending order, based on start time | ||
+ | *Play (or anything else): Returns all recordings in ascending order, based on start time | ||
=== Returns === | === Returns === | ||
The first int in the list is the number of recordings. After this, there follows a ProgramInfo for each recording. | The first int in the list is the number of recordings. After this, there follows a ProgramInfo for each recording. | ||
+ | |||
+ | === Changelog === | ||
+ | {| border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse; border-color:#8eabd0; background:#e7edf5" | ||
+ | |- style="background: lightsteelblue" | ||
+ | |+ | ||
+ | ! version !! changeset !! description | ||
+ | |- | ||
+ | | 1 || {{changeset|3021}} | ||
+ | | Initial version | ||
+ | |- | ||
+ | |} | ||
[[Category:Myth Protocol Commands]] | [[Category:Myth Protocol Commands]] |
Latest revision as of 18:29, 8 March 2011
QUERY_RECORDINGS
Arguments
Command arguments: <string:type>
List arguments: none
Response: SEQ <num> OF <ProgramInfo>
Examples
Command:
21 QUERY_RECORDINGS Ascending
Response:
18988 26[]:[]$40-a-day[]:[]Cape Cod[]:[]...
Description
Queries a list of recordings in the system. Query type is case-sensitive.
Valid types are (protocol versions 65+):
- Recording: Returns in-progress recordings, unsorted
- Descending (or Delete, deprecated): Returns all recordings in descending order, based on start time
- Ascending (or Play, deprecated): Returns all recordings in ascending order, based on start time
- Unsorted (or anything else): Returns all recordings, unsorted
For protocol versions 57 - 64, valid types are:
- Recording: Returns in-progress recordings, unsorted
- Play (or anything else): Returns all recordings, unsorted
For protocol versions 1 - 56, valid types are:
- Recording: Returns in-progress recordings in ascending order, based on start time
- Delete: Returns all recordings in descending order, based on start time
- Play (or anything else): Returns all recordings in ascending order, based on start time
Returns
The first int in the list is the number of recordings. After this, there follows a ProgramInfo for each recording.
Changelog
version | changeset | description |
---|---|---|
1 | [3021] | Initial version |