![]() |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
Re : Re: Programmatic Conflict Detection
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. |
|
|||
|
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. |
|
|||
|
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? |
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |