SnapStream Forums

Go Back   SnapStream Forums > SnapStream Developer Network > Development Discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-03-2009, 06:46 PM
Registered User
 
Join Date: Jan 2006
Posts: 189
Programmatic Conflict Detection

Regarding API 4.7.1 in case it matters.

When I call BTVScheduler.GetRejectedRecordings(), I get a response that includes items where RejectionEnum=Conflicts and RecordAnyChannel=True, and the scheduler has already resolved the conflict by targeting the recording for another channel. Since these recordings aren't really in conflict anymore, they don't require attention.

I'm trying to figure out how I can get a list of unresolved conflicts that would match the behavior of the Show Conflicting Recordings page in web admin.

Any thoughts on how to do this?

Mike
Reply With Quote
  #2 (permalink)  
Old 10-04-2009, 10:23 AM
Problem solver
 
Join Date: Jan 2004
Location: Montreal, Qc
Posts: 4,913
Re : Programmatic Conflict Detection

As you said, many of those conflicts are false positive, so you need to actually check that it won't be recording on another channel or that it isn't already in the recent recording list...
__________________
BTV 4.9.2 | XP Pro SP2 (nLite'd)| PVR-250/500/Firewire | Videotron - Pace 551 HD | Hitachi 50V500 (DVI)


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: BTV 4.9 SDK addition for developers.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: Conflict resolution/Guide updates/Searches/etc.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: External recordings, Firewire/clear QAM/DVB/R5000HD/etc.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: Record from a simple .GRF file.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: MainLobby integration.
Reply With Quote
  #3 (permalink)  
Old 10-04-2009, 01:20 PM
Registered User
 
Join Date: Jan 2006
Posts: 189
Re: Programmatic Conflict Detection

Are you saying that the only way to acheive functionality comparable to the Show Conflicting Recordings page in Web Admin is to iteratively call BTVScheduler.GetExistingConflicts() passing the Job Guid for each item where RejectionEnum=Conflicts and RecordAnyChannel=True from returned from GetRejectedRecordings, checking each GetExistingConflicts response to see if there is a conflicting item?

This would mean that GetExistingConflicts itself would have to behave differently than GetRejectedJobs, and only show "unresolved" conflicts...is this your experience?

Is this the way you are populating the Conflicts tab in BTV Negociator? I noticed that your program behaves the way I'm looking for mine to.

Thanks,
Mike

Last edited by Mike DiBella; 10-04-2009 at 01:45 PM. Reason: Clarity
Reply With Quote
  #4 (permalink)  
Old 10-04-2009, 02:20 PM
Problem solver
 
Join Date: Jan 2004
Location: Montreal, Qc
Posts: 4,913
Re : Re: Programmatic Conflict Detection

Quote:
Originally Posted by Mike DiBella View Post
Is this the way you are populating the Conflicts tab in BTV Negociator? I noticed that your program behaves the way I'm looking for mine to.
Yes and if you dig up ccarlin's older posts, you'll see that's also what he had to do in the web admin... I think I am actually using the rejected jobs with the conflict flag instead, since as you noted the dedicated method is useless...
__________________
BTV 4.9.2 | XP Pro SP2 (nLite'd)| PVR-250/500/Firewire | Videotron - Pace 551 HD | Hitachi 50V500 (DVI)


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: BTV 4.9 SDK addition for developers.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: Conflict resolution/Guide updates/Searches/etc.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: External recordings, Firewire/clear QAM/DVB/R5000HD/etc.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: Record from a simple .GRF file.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: MainLobby integration.
Reply With Quote
  #5 (permalink)  
Old 10-04-2009, 04:14 PM
Administrator
 
Join Date: Dec 2004
Location: Houston, TX
Posts: 2,291
Send a message via AIM to Kilrsat
Re: Programmatic Conflict Detection

You can see exactly what the web admin is doing:

WebSVN - WebAdministration - Rev 190 - /WebAdministration/SetupRecordings.aspx.cs

Specifically this block:

else if( queryString == "ur_cf" ) {
RemoveSelectedEpisodes.Visible = true;
BlockSelectedEpisodes.Visible = true;
DeleteSelectedJobs.Visible = false;
ChangePriorities.Visible = false;
//We need to pass thru anyway to determine conflicts...
Dictionary<string, int> epgids = FillUpcomingRecordings();
FillUpcomingBlockedRecordings( epgids );
epgids.Clear();


Should point you at the functions to look at in more detail.
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #6 (permalink)  
Old 10-06-2009, 12:26 PM
Registered User
 
Join Date: Jan 2006
Posts: 189
Re: Programmatic Conflict Detection

Here's what I think I see...can either of you confirm?

It looks like two lists are being built, a list of rejected recordings from BTVScheduler.GetRejectedRecordings(), and a list of upcomming recordings from BTVScheduler.GetUpcomingRecordings().

Any rejected recording whose EPGID also appears on the list of upcomming recordings is a "resolved conflict" and does not need to be included in the list of "unresolved conflicts".

Do I read that right?
Reply With Quote
  #7 (permalink)  
Old 10-06-2009, 12:50 PM
Registered User
 
Join Date: Jan 2006
Posts: 189
Re: Programmatic Conflict Detection

Well, that's what I implemented and it seems to work. Still interested in comment from either of you...
Reply With Quote
  #8 (permalink)  
Old 10-07-2009, 07:06 AM
Problem solver
 
Join Date: Jan 2004
Location: Montreal, Qc
Posts: 4,913
Re : Programmatic Conflict Detection

As I said, you can take it a step further and make sure it's not in the recent recordings list either, as technically that wouldn't be a real conflict either...
__________________
BTV 4.9.2 | XP Pro SP2 (nLite'd)| PVR-250/500/Firewire | Videotron - Pace 551 HD | Hitachi 50V500 (DVI)


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: BTV 4.9 SDK addition for developers.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: Conflict resolution/Guide updates/Searches/etc.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: External recordings, Firewire/clear QAM/DVB/R5000HD/etc.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: Record from a simple .GRF file.
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
: MainLobby integration.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Commercial Detection vancedailey Beyond TV and Beyond TV Link 12 02-01-2008 01:45 PM
ATI Remote Wonder detection problem jive512 Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 4 02-10-2004 10:41 PM
Hardware Detection wwhj Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 2 03-01-2002 12:01 AM
IP Address detection brianb08 Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 4 01-21-2001 04:01 AM


All times are GMT -6. The time now is 10:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2006 Snapstream Media