2007-01-21, 04:33 PM
Hi,
there seems to be a problem when calling "UpdateScheduledRecording" on an existing recording group.
For example, I'm using the following code to schedule a ''weekly" season recording:
The problem is that the paddings only seem to get updated for the scheduled recording with status "4" (STATUS_PLACE_HOLDER), thus only the scheduled recoring representing the recording group gets updated, and not the "normal" scheduled recordings that belong to that group.
My question is now, if this behaviour is intended, or if there is a chance that this will be changed to update all recordings of a group when calling "UpdateScheduledRecording"?
Thanks in advance for an answer,
-alibert
there seems to be a problem when calling "UpdateScheduledRecording" on an existing recording group.
For example, I'm using the following code to schedule a ''weekly" season recording:
Code:
// Schedule recording
scheduledRecording = ScheduleHelper.getInstance().SheduleRecording(
ChannelOid, StartTime.AddMinutes(-Config.AllowableTimeslotVariance),
StartTime.AddMinutes(Config.AllowableTimeslotVariance), GbpvrProgramme,
ScheduledRecording.TYPE_RECORD_SEASON, ScheduledRecording.GROUP_ALLOCATE,
Title, quality, keepRecordings, (int)Math.Pow(2, (int)StartTime.DayOfWeek));
// Check if paddings differ from defaults
if (Config.PreShowPadding != prePadding || Config.PostShowPadding != postPadding)
{
// Update paddings
scheduledRecording.setPrePadMinutes(prePadding);
scheduledRecording.setPostPadMinutes(postPadding);
ScheduleHelper.getInstance().UpdateScheduledRecording(scheduledRecording);
}
The problem is that the paddings only seem to get updated for the scheduled recording with status "4" (STATUS_PLACE_HOLDER), thus only the scheduled recoring representing the recording group gets updated, and not the "normal" scheduled recordings that belong to that group.
My question is now, if this behaviour is intended, or if there is a chance that this will be changed to update all recordings of a group when calling "UpdateScheduledRecording"?
Thanks in advance for an answer,
-alibert