NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 46 47 48 49 50 … 93 Next »
UpdateScheduledRecording on recording groups

 
  • 0 Vote(s) - 0 Average
UpdateScheduledRecording on recording groups
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
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:
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2007-01-21, 05:05 PM
Quote: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"?
This is the expected behaviour.

The new padding values will only be applied to new recordings scheduled. ...but this combined with the default 'complete EPG reload' setting will mean that the individual episodes will normally be updated at the next EPG update (when they'll be deleted and recreated).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 401 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 273 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 909 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,394 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,882 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,426 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,632 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,724 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 5,973 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 9,982 2014-12-19, 10:28 PM
Last Post: cbgifford

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode