[mythtv-commits] Ticket #11753: Dvr/AddRecordSchedule does not work
MythTV
noreply at mythtv.org
Fri Aug 16 00:31:16 UTC 2013
#11753: Dvr/AddRecordSchedule does not work
-------------------------+-------------------------------------------------
Reporter: | Type: Bug Report - General
robert.mcnamara@… | Priority: minor
Status: new | Component: MythTV - Services API - Backend
Milestone: unknown | Severity: medium
Version: Unspecified | Ticket locked: 0
Keywords: |
-------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11753>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list