Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Actually, it does seem to do request a RESCHEDULE_RECORDINGS, but with recordid
of 0, rather using than the newly created scheduleId value.
Here's my backend log following the creation of a new schedule.
2011-01-16 14:33:49.929 Reschedule requested for id 0.
2011-01-16 14:33:50.372 Scheduled 54 items in 0.2 = 0.00 match + 0.20 place
For some reason, the scheduleNotify code is unable to get a valid scheduleId:
def rescheduleNotify(self, schedule=None):
"""
Method to instruct the backend to reschedule recordings. If the
schedule is not specified, all recording schedules will be rescheduled
by the backend.
"""
log.debug('rescheduleNotify(schedule= %s)' % safe_str(schedule))
scheduleId = 0
if schedule:
scheduleId = schedule.getScheduleId()
if scheduleId is None:
scheduleId = 0
reply = self._sendRequest(self.cmdSock, ['RESCHEDULE_RECORDINGS %s' % scheduleId])
if int(reply[0]) < 0:
raise ServerException, 'Reschedule notify failed: %s' % reply
Changing the default from 0 to -1 causes myth-backend to reschedule all
recordings, which has the desired effect, but is less efficient than specifying
the correct scheduleId.
Original comment by banksdav...@gmail.com
on 16 Jan 2011 at 2:45
Thanks for the detailed bug report. Issue fixed in revision 1c56c2ca43.
Original comment by semir.pa...@gmail.com
on 20 Jan 2011 at 4:36
Original issue reported on code.google.com by
banksdav...@gmail.com
on 16 Jan 2011 at 2:27