Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: New recurring recording option

  1. #11
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,512
    Quote Originally Posted by UncleJohnsBand View Post
    The only method I see in the Ischedulehelper api that lets me pass in an advanced rule is: ScheduleRecording(string name, int channelOID, System.DateTime startTime, System.DateTime endTime, int prePadding, int postPadding, NUtility.DayMask dayMask, int keepCount, NUtility.RecordingQuality quality, string advancedRules)
    Yes, thats the API I called.

    Is this the method I should be using to set one of these anyday, anytime any channel as well as other combinations thisday, thistime anychannel & anyday, thistime, anychannel & thisday, anytime, anychannel ?
    Something like:

    string advancedRules = "title like '" + epgEvent.Title + "%'";
    ScheduleRecording(epgEvent.Title, 0 /* all channels */, epgEvent.StartTime, epgEvent.EndTime, prePadding, postPadding, DayMask.ANY, 0, recordingQuality, advancedRules);

  2. #12
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,111
    Quote Originally Posted by sub View Post
    Yes, thats the API I called.

    Something like:

    string advancedRules = "title like '" + epgEvent.Title + "%'";
    ScheduleRecording(epgEvent.Title, 0 /* all channels */, epgEvent.StartTime, epgEvent.EndTime, prePadding, postPadding, DayMask.ANY, 0, recordingQuality, advancedRules);
    When I schedule a recording for anytime....I use this api call ScheduleRecording(NUtility.EPGEvent epgEvent, int prePadding, int postPadding, NUtility.DayMask dayMask, int keepCount, NUtility.RecordingQuality quality, bool timeslot)

    To do a recurring recoding at anytime, anyday on all channels can I still use the method that allows the advanced rules seeing it requires a start/end time which I do not want to use since I want it to be anytime slot?

    Perhaps we need a bool timeslot parameter added to the method that allows the advancedRules?
    Last edited by UncleJohnsBand; 2011-01-23 at 02:03 AM.

  3. #13
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,512
    There is no timeslot version of the API at this stage, but I can look into adding something like that in the future.

  4. #14
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,111
    Quote Originally Posted by sub View Post
    There is no timeslot version of the API at this stage, but I can look into adding something like that in the future.
    Ok....perhaps in 1.5.37?

  5. #15
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,470
    Quote Originally Posted by UncleJohnsBand View Post
    Ok....perhaps in 1.5.37?
    UJB, let me know when/if this available for Web Services and what I have to pass and I will update SearchLite.

    Martin

  6. #16
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,512
    Quote Originally Posted by UncleJohnsBand View Post
    Ok....perhaps in 1.5.37?
    Maybe. You can always add the timeslot into advanced rule though, so the feature would be available today with the current API.

  7. #17
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,111
    Quote Originally Posted by sub View Post
    Maybe. You can always add the timeslot into advanced rule though, so the feature would be available today with the current API.
    It appears it takes the timeslot.....what I want is no timeslot....so if I record happy days with a any day, any timeslot and any channel I would get a recording on channel 2 at 5:30 a.m. and channel 15 at 6:15 p.m.

    What I am seeing is that it schedules in the timeslot passed in on the start/end time.

    Also.....it appears it does not schedule the event if it detects it is an episode already scheduled.....see below highlighting. I think the recording of dups should be optional.

    Code:
    2011-01-22 23:52:15.617	[INFO][4]	UpdateRecurringRecording(65, 'Saturday Night Live'):
    <Rules>
      <ChannelOID>0</ChannelOID>
      <ChannelName>All Channels</ChannelName>
      <StartTime>2011-01-23T04:29:00.0000000Z</StartTime>
      <EndTime>2011-01-23T06:03:00.0000000Z</EndTime>
      <PrePadding>1</PrePadding>
      <PostPadding>2</PostPadding>
      <Quality>3</Quality>
      <Keep>0</Keep>
      <AdvancedRules>title like &apos;Saturday Night Live%&apos;</AdvancedRules>
    </Rules>
    
    2011-01-22 23:52:15.668	[DEBUG][4]	LoadListingByAdvancedRules(channel='all channels',advancedRules=title like 'Saturday Night Live%')
    2011-01-22 23:52:15.691	[DEBUG][4]	 - Potential episode at: 1/22/2011 11:29:00 PM
    2011-01-22 23:52:15.695	[DEBUG][4]	   ...check IsValid()
    2011-01-22 23:52:15.696	[DEBUG][4]	   ...scheduling episode
    2011-01-22 23:52:15.783	[DEBUG][4]	 - Potential episode at: 1/22/2011 11:29:00 PM
    2011-01-22 23:52:15.783	[DEBUG][4]	   ...check IsValid()
    2011-01-22 23:52:15.784	[DEBUG][4]	   ...already got this episode scheduled
    2011-01-22 23:52:15.784	[DEBUG][4]	 - Potential episode at: 1/29/2011 11:29:00 PM
    2011-01-22 23:52:15.784	[DEBUG][4]	   ...check IsValid()
    2011-01-22 23:52:15.784	[DEBUG][4]	   ...scheduling episode
    2011-01-22 23:52:15.856	[DEBUG][4]	 - Potential episode at: 1/29/2011 11:29:00 PM
    2011-01-22 23:52:15.856	[DEBUG][4]	   ...check IsValid()
    2011-01-22 23:52:15.856	[DEBUG][4]	   ...already got this episode scheduled

  8. #18
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,111
    Quote Originally Posted by mvallevand View Post
    UJB, let me know when/if this available for Web Services and what I have to pass and I will update SearchLite.

    Martin
    Will do.....it is easy to implement....will be just another setting - i.e. allChannels true/false(default)

  9. #19
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,512
    Quote Originally Posted by UncleJohnsBand View Post
    It appears it takes the timeslot.....what I want is no timeslot....
    Hmm, doesnt seem to have used a timeslot here. Its definitely picked up shows in very different parts of the day for me.

  10. #20
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,512
    I just stepped through with the debugger, and its definitely not adding the timeslot info to the recurring recording. Can you see it when you export the recordings?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •