NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 62 63 64 65 66 … 93 Next »
Added funtions to RecordingUtils

 
  • 0 Vote(s) - 0 Average
Added funtions to RecordingUtils
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#1
2005-12-27, 08:10 PM
Hello Jorm, Jrock and KingArgyle,

I took a copy of your XRecord/CDK Scheduler toolset (via CVS at sourceforge) and added a number of functions.

Specifically, these functions allow for the "unscheduling" of the programs that were scheduled by CDK Scheduler.

The reason behind this:

1. I use CDK Scheduler (PriorityRecordings) for all my season recordings.
2. I live in Europe (using XML TV).

The problem I have been having is that quite often the scedule for programs that I want to record changes.

Usually this gets fixed about 1 day before the program airs, but since I have my EPG for the next 7 days, I end up with double recording entries. (GBPVR won't delete programs that have been scheduled for recording, so it keeps the old (incorrect) entry).

The easiest way for me to fix this, is to "unschedule" all the PriorityRecordings programs, and then after the EPG-update, PriorityRecordings gets run again and evertyhing is okay.

I am still contemplating writing a tool that will fix this more structurally (also for manually scheduled recordings), but it will be some time before I get round to that.

I made changes in only one file (Scheduler.cs), and added another stand-alone executable (in the form of PriorityRecording.exe).

I'm not sure if you want to keep this addition, or want to remove it, but I though I'd let you know what I did, so you can think about it...

I have included both changed files in this posting....

Thanks anyway for a great tool-setSmile .

//Ton
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#2
2005-12-27, 10:03 PM
Thanks. I'll try and get these merged into the code base in the next couple of days.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#3
2005-12-28, 03:51 PM
Thanks King.

Do you think adding logic to remove any items that are not currently on the EPG would be a better way of going?
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#4
2005-12-28, 05:37 PM
No, because you could accidently delete one time recordings setup by GBPVR.
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#5
2005-12-28, 09:50 PM
Hello,

I have been adding some extra logic... Looks lile I took a route that was a little too easy....

I have added an extra function in the file: "RecordingUtils.cs".

What I have done now is:

- Call pLoadPrograms
- Call my own function for every program that would be scheduled, which removes the programs by programOID

The other way I could have gone is:
- Call pLoadprograms
- Call pLoadScedule (in another array)
- compare the two arrays, removing any items not present in both arrays
- call the standard cancelScheduledRecording (which uses sceduleOID)

The last one is probabely nicer, but was more work as well, and I'm not sure the results would be all that different.

Anyway, here are the updated files (I wasn't sure if you wanted to add a command-line switch to PriorityRecordings.exe, or would like an additional binary more, so I opted for the last one).

Thanks again for the good work sofar....

//Ton
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-12-29, 04:11 AM
The additional binary is preferable. Starting to add parameters starts to make it more confusing for people trying to use it.

I'll try and get these changes merged in over the upcoming holiday weekend.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#7
2006-01-01, 08:24 PM
Ton,

I added your API and DeleteSchedule program to the CDK Scheduler repository on Sourceforge.
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#8
2006-01-06, 11:30 PM
Okay, thanks...

I've been running it since I last posted it and have seen no serious problems...

For me, it works like a charm...

Will this be included in the next XRecord build??

//Ton
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#9
2006-01-07, 05:04 AM
Typically, Jorm includes everything when he releases XRecord. I'll keep any eye on the next release as well to make sure it gets in there. I also made a slight tweak to the XML Schemas used by the PriorityRecordings, I made the Quality element a required element, and wrapped the ProgramName and Search elements with a choice, so that you can only have a ProgramName element or a Search element, but not both at the same time. This enforces a rule that PriorityRecordings uses and expects there to be either a ProgramName or a Search element but not both.

I'm testing these tweaks on my system at home, and will upload the new Schemas in a few days.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Way of telling if a scheduled recording has been added/deleted bgowland 8 2,720 2011-12-07, 05:06 PM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode