NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 37 38 39 40 41 … 193 Next »
New recurring recording option

 
  • 0 Vote(s) - 0 Average
New recurring recording option
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#11
2011-01-23, 01:16 AM
UncleJohnsBand Wrote: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.

Quote: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);
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#12
2011-01-23, 02:57 AM (This post was last modified: 2011-01-23, 03:03 AM by UncleJohnsBand.)
sub Wrote: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?
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#13
2011-01-23, 04:05 AM
There is no timeslot version of the API at this stage, but I can look into adding something like that in the future.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#14
2011-01-23, 04:11 AM
sub Wrote: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?
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#15
2011-01-23, 04:34 AM
UncleJohnsBand Wrote: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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#16
2011-01-23, 04:56 AM
UncleJohnsBand Wrote: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.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#17
2011-01-23, 05:11 AM
sub Wrote: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]       [color=red]...already got this episode scheduled[/color]
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]       [color=red]...already got this episode scheduled[/color]
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#18
2011-01-23, 05:20 AM
mvallevand Wrote: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)
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#19
2011-01-23, 05:26 AM
UncleJohnsBand Wrote: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.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#20
2011-01-23, 05:29 AM
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?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb An option when confronted with a "Scheduling Error". Siamese Cat 2 469 2024-07-07, 12:16 PM
Last Post: mvallevand
  Overwrite oldest recording with lock feature djenson 0 505 2023-09-28, 10:37 AM
Last Post: djenson
  Recording status displayed when finished coreymichael 6 986 2023-08-31, 05:32 PM
Last Post: sub
  Recording scheduling mzanetti 2 847 2023-07-28, 05:24 PM
Last Post: sub
  Feature Request: EIT Support, plus Stop and Save Recording. Chris4877 8 1,603 2022-09-12, 12:58 AM
Last Post: mvallevand
  Delete option from Videos feature artmetz 5 1,372 2022-03-17, 07:38 PM
Last Post: HarryH3
  Add manual recording - default time markn62 0 873 2022-02-14, 12:46 AM
Last Post: markn62
  Sorting Options for Recurring Recording List pkscout 1 892 2021-11-23, 07:51 PM
Last Post: sub
  Remove failed recurring recording artmetz 0 733 2021-11-17, 07:55 PM
Last Post: artmetz
  24h clock option for TV Guide luguber 2 1,226 2021-09-09, 03:05 PM
Last Post: luguber

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

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

Linear Mode
Threaded Mode