Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#11753 closed Bug Report - General (fixed)
Dvr/AddRecordSchedule does not work
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | minor | Milestone: | 0.27 |
| Component: | MythTV - Services API - Backend | Version: | Unspecified |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
The reworked AddRecordSchedule does not work (and as near as I can tell never has). RecordingRule::isValid is called on the recording rule constructed, but the rule's start and end times and dates are never set. Thus, the duration will always be 0 and isValid will return false. Presumably adding (to Dvr::AddRecordSchedule):
rule.m_startdate = recstartts.date(); rule.m_starttime = recstartts.time();
rule.m_enddate = recendts.date(); rule.m_endtime = recendts.time();
Will cause this to function as expected.
On an slightly related note, It's a serious bummer to have existing API calls reworked like this rather than replaced and the old ones deprecated-- anyone who has written a client against the existing API is in for a rude awakening when .27 is released.
Change History (6)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
| Owner: | set to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:3 by , 13 years ago
The services API is still very immature and subject to change between MythTV versions. I expect it will remain that way until we begin to use the API ourselves and have a well defined policy and method for providing backward compatibility. In the case of AddRecordSchedule(), the old version was broken by design and was not something I wanted to keep around.
comment:4 by , 13 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → new |
With the above resolved, AddRecordSchedule still does not work. It does not set the ChanId in the recording rule and thus isValid fails because the chanId is invalid.
comment:5 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:6 by , 13 years ago
| Milestone: | unknown → 0.27 |
|---|

Ref #11495