Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dvr_api:dvr_recording_rules [2020/10/25 01:17] – neds | dvr_api:dvr_recording_rules [2020/10/25 01:36] (current) – neds | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======DVR Recording Rules====== | ======DVR Recording Rules====== | ||
| <btn type=" | <btn type=" | ||
| + | |||
| + | <WRAP center info> | ||
| + | This is a mirror of the documentation from: https:// | ||
| + | </ | ||
| + | |||
| A Series rule will record every unique episode that matches the given criteria within a TV series. The rule does not expire. Only one Series rule can exist per TV series. | A Series rule will record every unique episode that matches the given criteria within a TV series. The rule does not expire. Only one Series rule can exist per TV series. | ||
| Line 38: | Line 43: | ||
| Returns: Details of all recording rules. | Returns: Details of all recording rules. | ||
| + | |||
| + | </ | ||
| + | ====Add a DateTimeOnly-ChannelOnly recording rule==== | ||
| + | <WRAP indent> | ||
| + | |||
| + | ^ Parameter ^ Type ^ Description ^ | ||
| + | | DeviceAuth | string | Concatenation of the DeviceAuth strings from all HDHomeRun tuners. | | ||
| + | | Cmd | string | " | ||
| + | | SeriesID | string | SeriesID identifying the series or movie to record. | | ||
| + | | DateTimeOnly | int64 | Record only the airing that starts at this time (UTC unixtime). | | ||
| + | | ChannelOnly | string | Record only the airing on this virtual channel number. | | ||
| + | | StartPadding | uint | Optional. Start recording early (seconds, default 30s, max 1h). | | ||
| + | | EndPadding | uint | Optional. Continue recording past end (seconds, default 30s, max 3h). | | ||
| + | |||
| + | Both DateTimeOnly and ChannelOnly are required. ChannelOnly must be a single channel number. | ||
| + | |||
| + | Returns: Details of all recording rules | ||
| </ | </ | ||
| Line 46: | Line 68: | ||
| | DeviceAuth | string | Concatenation of the DeviceAuth strings from all HDHomeRun tuners. | | | DeviceAuth | string | Concatenation of the DeviceAuth strings from all HDHomeRun tuners. | | ||
| | Cmd | string | " | | Cmd | string | " | ||
| - | | RecordingRuleID | string | Optional. ID identifying the rule to modify. | | + | | RecordingRuleID | string | Optional/Required. ID identifying the rule to modify. | |
| - | | SeriesID | string | Optional. SeriesID identifying the series or movie to delete. | | + | | SeriesID | string | Optional/Required. SeriesID identifying the series or movie to modify. | |
| + | | ChannelOnly | string | Optional. Pipe separated list of virtual channel numbers - record only on the specified channels. | | ||
| + | | TeamOnly | string | Optional. Pipe separated list of team names - record only if one of the specified teams is playing. | | ||
| | RecentOnly | bool | Optional. Record only recent episodes (default 0). | | | RecentOnly | bool | Optional. Record only recent episodes (default 0). | | ||
| - | | ChannelOnly | string | Optional. Record only on this channel (virtual channel number or " | ||
| | AfterOriginalAirdateOnly | int64 | Optional. Record only if the original airdate is the same or after (UTC unixtime). | | | AfterOriginalAirdateOnly | int64 | Optional. Record only if the original airdate is the same or after (UTC unixtime). | | ||
| | StartPadding | uint | Optional. Start recording early (seconds, default 30s, max 1h). | | | StartPadding | uint | Optional. Start recording early (seconds, default 30s, max 1h). | | ||
| | EndPadding | uint | Optional. Continue recording past end (seconds, default 30s, max 3h). | | | EndPadding | uint | Optional. Continue recording past end (seconds, default 30s, max 3h). | | ||
| - | The RecordingRuleID or the SeriesID must be specified. | + | The RecordingRuleID |
| - | It is not possible to convert between | + | Returns: Details of all recording rules. |
| + | </ | ||
| + | ====Modify | ||
| + | <WRAP indent> | ||
| - | Returns: Details | + | ^ Parameter ^ Type ^ Description ^ |
| + | | DeviceAuth | string | Concatenation | ||
| + | | Cmd | string | " | ||
| + | | RecordingRuleID | string | Optional/ | ||
| + | | SeriesID | ||
| + | | DateTimeOnly | int64 | Optional/ | ||
| + | | ChannelOnly | string | Optional/ | ||
| + | | StartPadding | uint | Optional. Start recording early (seconds, default 30s, max 1h). | | ||
| + | | EndPadding | uint | Optional. Continue recording past end (seconds, default 30s, max 3h). | | ||
| + | |||
| + | The RecordingRuleID must be specified | ||
| + | |||
| + | Returns: Details of all recording | ||
| </ | </ | ||
| Line 70: | Line 108: | ||
| | AfterRecordingRuleID | string | The new priority of the rule by specifying which rule it should be directly after, or 0 to make the highest priority. | | | AfterRecordingRuleID | string | The new priority of the rule by specifying which rule it should be directly after, or 0 to make the highest priority. | | ||
| - | Priority applies to Series and Movie rules only. DateTimeOnly rules are always highest priority. | + | Priority applies to Series and Movie rules only. DateTimeOnly-ChannelOnly |
| - | Returns: Details of the recording | + | Returns: Details of all recording |
| </ | </ | ||
| - | ====Delete a recording rule==== | + | ====Delete a series |
| <WRAP indent> | <WRAP indent> | ||
| Line 81: | Line 119: | ||
| | DeviceAuth | string | Concatenation of the DeviceAuth strings from all HDHomeRun tuners. | | | DeviceAuth | string | Concatenation of the DeviceAuth strings from all HDHomeRun tuners. | | ||
| | Cmd | string | " | | Cmd | string | " | ||
| - | | RecordingRuleID | string | Optional. ID identifying the rule to delete. | | + | | RecordingRuleID | string | Optional/Required. ID identifying the rule to delete. | |
| - | | SeriesID | string | Optional. SeriesID identifying the series or movie to delete.| | + | | SeriesID | string | Optional/Required. SeriesID identifying the series or movie to delete. | |
| - | | TeamOnly | string | Optional. Use with SeriesID to match a Team rule. | | + | |
| - | | DateTimeOnly | int64 | Optional. Use with SeriesID to match a DateTimeOnly rule (UTC unixtime). | | + | |
| - | | ProgramID | string | Optional. Use ProgramID + StartTime to identifying a specific airing. | | + | |
| - | | StartTime | int64 | Optional. Use ProgramID + StartTime to identifying a specific airing. | | + | |
| - | If RecordingRuleID | + | The RecordingRuleID |
| - | If SeriesID and TeamOnly are specified the matching TeamOnly rule is delete. | + | Returns: Details of all recording rules. |
| - | If SeriesID and DateTimeOnly are specified the matching | + | </ |
| + | ====Delete a DateTimeOnly-ChannelOnly recording | ||
| + | <WRAP indent> | ||
| - | If SeriesID | + | ^ Parameter ^ Type ^ Description ^ |
| + | | DeviceAuth | string | Concatenation of the DeviceAuth strings from all HDHomeRun tuners. | | ||
| + | | Cmd | string | " | ||
| + | | RecordingRuleID | string | Optional/ | ||
| + | | SeriesID | ||
| + | | DateTimeOnly | ||
| + | | ChannelOnly | string | Optional/ | ||
| - | If ProgramID and StartTime are specified the airing is identified in the guide and ALL recording rules that would result in recording the specified | + | The RecordingRuleID must be specified |
| - | Returns: | + | Returns: |
| </ | </ | ||
| Line 111: | Line 153: | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| " | " | ||
| - | " | + | " |
| " | " | ||
| " | " | ||
| Line 132: | Line 174: | ||
| </ | </ | ||
| + | ==== History ==== | ||
| + | <WRAP indent> | ||
| + | |||
| + | * 20201024: | ||
| + | * API changes. | ||
| + | |||
| + | * 20160318: | ||
| + | * Add TeamOnly rules. | ||
| + | * Expand delete command. | ||
| + | |||
| + | * 20160218: | ||
| + | * Add command will update an existing rule if a collision occurs. | ||
| + | * The OriginalAirdate associated with the series no longer reported in the recording rule results. | ||
| + | * Results include all matching rules if a SeriesID is specified. | ||
| + | </ | ||
| + | |||
| + | Copyright © 2016-2020 Silicondust USA Inc. < | ||