NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 51 52 53 54 55 … 93 Next »
ScheduleHelper questions

 
  • 0 Vote(s) - 0 Average
ScheduleHelper questions
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
2006-08-18, 12:51 PM
Hi,

I have a few questions:

1) When calling 'ScheduleHelper.getInstance().SheduleRecording(...)' and it returns 'null', does it always mean that there is a recording conflict or will it also return 'null' under other circumstances?
In other words: Do I have to check if the recording request will result in a conflict before I actually try to schedule it? Or is it okay to assume that it is conflicting when 'SheduleRecording(...)' returns 'null'?

2) When resolving conflicts - is it true that the pre- and postpaddings aren't taken into consideration? And the 'AllowedBeginningOverlap', is this also used when resolving conflicts or is it only used for back-to-back-recordings on the same channel and capture source?

3) I'm still not sure when to use 'ScheduledRecording.GROUP_NONE' and when 'ScheduledRecording.GROUP_ALLOCATE' - has it something to do with the 'AutoCreateFolders' setting in the config?

4) What is behind the 'captureSource' object of a scheduled recording? And is there another way of guessing the capture source oid of a scheduled recording than doing a database lookup?

Many thanks in advance for any answer,

-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2006-08-18, 08:49 PM
Quote:1) When calling 'ScheduleHelper.getInstance().SheduleRecording(... )' and it returns 'null', does it always mean that there is a recording conflict or will it also return 'null' under other circumstances?
In other words: Do I have to check if the recording request will result in a conflict before I actually try to schedule it? Or is it okay to assume that it is conflicting when 'SheduleRecording(...)' returns 'null'?
A null result is saying it couldnt schedule the recording. This is most likely because of a conflict. You dont need to check yourself for conflicts.

Quote:2) When resolving conflicts - is it true that the pre- and postpaddings aren't taken into consideration? And the 'AllowedBeginningOverlap', is this also used when resolving conflicts or is it only used for back-to-back-recordings on the same channel and capture source?
pre-post padding are ignored from a conflict point of view. They are just something the recording service will apply if it can at recording time.

Quote:And the 'AllowedBeginningOverlap', is this also used when resolving conflicts or is it only used for back-to-back-recordings on the same channel and capture source?
When a recording is being scheduled, if no available capture source was found, then it'll check each capture source again, allowing up to 'AllowedBeginningOverlap' minutes to be trimmed off a recording to make it fit. They dont have to be the same channel.

Quote:3) I'm still not sure when to use 'ScheduledRecording.GROUP_NONE' and when 'ScheduledRecording.GROUP_ALLOCATE' - has it something to do with the 'AutoCreateFolders' setting in the config?
On off recordings use GROUP_NONE. New season recordings use GROUP_ALLOCATE, signifying a new group id will be assigned, and it will be associated with each episode of this season recording.

Quote:4) What is behind the 'captureSource' object of a scheduled recording? And is there another way of guessing the capture source oid of a scheduled recording than doing a database lookup?
There is no publically accessible object there. You'd probably need to look this up in the database.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Couple of questions about hacking npvr.db3 drmargarit 6 4,209 2014-09-08, 02:22 AM
Last Post: sub
  Questions about Scraping from thetvdb and themoviedb craigrs84 0 2,493 2014-08-19, 05:30 PM
Last Post: craigrs84
  Random API questions whurlston 7 3,255 2012-08-09, 02:21 PM
Last Post: whurlston
  NPVR database questions mvallevand 25 9,777 2011-01-06, 12:58 AM
Last Post: jksmurf
  Positioning of elements in skins (...and some other questions) ShiningDragon 13 4,259 2010-07-22, 06:42 PM
Last Post: ShiningDragon
  ScheduleHelper.SheduleRecording returns Nothing MaidenQuebec 7 2,989 2009-03-20, 12:21 PM
Last Post: Ernie-c
  Plugin Questions systemshark 2 1,698 2009-02-28, 08:01 AM
Last Post: systemshark
  Plugins and interface questions from a C# rookie mvallevand 11 4,055 2008-08-26, 03:20 PM
Last Post: McBainUK
  IRecordingSource Questions blackpaw 6 2,461 2008-04-01, 04:50 AM
Last Post: sub
  XMLTV Questions -Oz- 34 10,290 2008-03-24, 01:19 AM
Last Post: zehd

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

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

Linear Mode
Threaded Mode