NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 93 Next »
Custom recording rules

 
  • 0 Vote(s) - 0 Average
Custom recording rules
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#21
2012-10-09, 10:11 PM
It might be cosmetic http://forums.nextpvr.com/showthread.php...-incorrect but it seems related. Anyway I will update the epg and see what happens.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#22
2012-10-09, 10:40 PM
The sql seems right and the rules seem to be what I want (I am not using the new user field yet), the channel is ok the time range for the two hours I want to test seems wrong.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#23
2012-10-09, 11:10 PM
I guessing there is nothing wrong with those times since the APIs for creating yjpse scheduling recordings haven't changed for a long time, and they're being successfully used by both NextPVR and NEWA. Are you sure you supplied UTC times to the call?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#24
2012-10-09, 11:21 PM
Don't you use the time in the Rules?

Code:
<Rules>
  <ChannelOID>6870</ChannelOID>
  <ChannelName>CJOH</ChannelName>
  <StartTime>2012-10-14T23:00:00.0000000Z</StartTime>
  <EndTime>2012-10-15T01:00:00.0000000Z</EndTime>
  <PrePadding>1</PrePadding>
  <PostPadding>2</PostPadding>
  <Quality>0</Quality>
  <Keep>0</Keep>
  <AdvancedRules>
title not in (select name from scheduled_recording)
</AdvancedRules>
  <Days>SUNDAY</Days>
</Rules>

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#25
2012-10-09, 11:30 PM
From memory, these StartTime/EndTime attributes are not used when you specify advanced rules (these are not TimeslotStart/TimeslotEnd attributes). It will use the day mask though, which you've set to Sunday. So it'll schedule any shows return from the SQL that are on a Sunday.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#26
2012-10-09, 11:39 PM (This post was last modified: 2012-10-10, 01:28 AM by mvallevand.)
Ok good to know, but odd that it accepts all the other filters except the start/end time

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#27
2012-10-10, 01:28 AM
So the start/end time are not used at all with advancedRules but they are used when there are none?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#28
2012-10-10, 01:35 AM
From memory, yes that's the case. The start/end times of the created scheduled recordings will come from te start/end times of the EPG events.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#29
2012-10-10, 10:12 PM
You must be doing a bit of date parsing if you limit day of the week. Could you extend that logic to use he configured time for advancedRules? It really is a nuisance adding the start and end times, because I only can use the hour to because I can't hard-code a date, I have to use localtime to adjust for DST and then when the show is in prime time it typically spans days here I end up with 4 conditions on time.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#30
2012-10-10, 10:19 PM
It's not parsing these StartTime/EndTime attributes for this type of recording. The daymask is separate, and passed in as a separate parameter to the schedule recording API call. It results in the <Days>SUNDAY</Days> in the xml.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 398 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,880 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,416 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,630 2018-05-06, 10:09 PM
Last Post: sub
  custom creation of a recurring error p37307 2 2,202 2017-12-19, 03:45 AM
Last Post: mvallevand
  How to best verify success when adding a recurring recording drmargarit 1 2,723 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 5,972 2015-07-13, 09:28 PM
Last Post: patco444

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

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

Linear Mode
Threaded Mode