NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 22 23 24 25 26 … 56 Next »
CDK Scheduler Examples

 
  • 0 Vote(s) - 0 Average
CDK Scheduler Examples
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#1
2005-02-10, 08:19 PM (This post was last modified: 2006-05-13, 03:57 AM by KingArgyle.)
The CDK Scheduler treats everything as a Season record. You narrow the scope by setting the various restrictions. You can combine any of these. The only items that should not be combined are the ProgramName and the Search criteria. One or
the other needs to be specified.

CDK Scheduler Example Recording Scenarios setup:

Season Record All Channels:
Code:
<Recording type="Season" priority="1">
  <ProgramName>The West Wing</ProgramName>
  <RecordingType>All Episodes</RecordingType>
  <Quality>Medium</Quality>
  <CaptureSource>1</CaptureSource>
</Recording>

Season Record this Channel:
Code:
<Recording type="Season" priority="1">
   <Channel>4</Channel>
   <ProgramName>The West Wing</ProgramName>
   <RecordingType>All Episodes</RecordingType>
   <Quality>Medium</Quality>
   <CaptureSource>1</CaptureSource>
</Recording>

Season Record this Channel this Day:
Code:
<Recording type="Season" priority="1">
   <Channel>4</Channel>
   <ProgramName>The West Wing</ProgramName>
   <RecordingType>All Episodes</RecordingType>
   <Quality>Medium</Quality>
   <CaptureSource>1</CaptureSource>
   <LimitDays>
     <DaysOfWeek>Wednesday</DaysOfWeek>
   </LimitDays>
</Recording>

Season Record this Channel restrict time range
Code:
<Recording type="Season" priority="1">
   <Channel>4</Channel>
   <ProgramName>The West Wing</ProgramName>
   <RecordingType>All Episodes</RecordingType>
   <Quality>Medium</Quality>
   <CaptureSource>1</CaptureSource>
   <ScheduleTime>
     <Start time="11:00"/>
     <End time="23:00"/>
   </ScheduleTime>
</Recording>

Don't Record Duplicates:
Code:
<Recording type="Season" priority="1">
   <ProgramName>The West Wing</ProgramName>
   <RecordingType>All Episodes</RecordingType>
   <Quality>Medium</Quality>
   <CaptureSource>1</CaptureSource>
   <Duplicates>
     <Recorded>No</Duplicates>
     <Scheduled>No</Duplicates>
   </Duplicates>
</Recording>

Don't Record Duplicates, but Schedule Duplicates:
Code:
<Recording type="Season" priority="1">
    <ProgramName>The West Wing</ProgramName>
    <RecordingType>All Episodes</RecordingType>
    <Quality>Medium</Quality>
    <CaptureSource>1</CaptureSource>
    <Duplicates>
      <Recorded>No</Duplicates>
      <Scheduled>Yes</Duplicates>
    </Duplicates>
  </Recording>

The supper restricted recording:
Code:
<Recording type="Season" priority="1">
    <Channel>4</Channel>
    <ProgramName>The West Wing</ProgramName>
    <RecordingType>All Episodes</RecordingType>
    <Quality>Medium</Quality>
    <CaptureSource>1</CaptureSource>
    <Duplicates>
      <Recorded>No</Recorded>
      <Scheduled>No</Scheduled>
    </Duplicates>
    <LimitDays>
        <DaysOfWeek>Saturday</DaysOfWeek>
        <DaysOfWeek>Sunday</DaysOfWeek>
    </LimitDays>
    <ScheduleTime>
      <Start date="2005-04-04" time="2000"></Start>
      <End date="2005-04-06" time="2359"></End>
    </ScheduleTime>
    <Padding>
      <PrePadding>1</PrePadding>
      <PostPadding>4</PostPadding>
    </Padding>
</Recording>


You can combine any of these so that you can restrict as much as you want to as little as you want. These settings should work with the current CDK Scheduler and XRecord v16.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#2
2005-02-10, 08:25 PM
You can have the same program in the recordings file, but at two different priorities. So if The West Wing came on channels 4, 5, and 37. And you wanted to record only the episodes on 4, and 37, and not get any episodes from 5 you would do the following.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<Recording type="Season" priority="1">
<Channel>4</Channe>
<ProgramName>The West Wing</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>Medium</Quality>
<CaptureSource>1</CaptureSource>
</Recording>

<Recording type="Season" priority="2">
<Channel>37</Channel>
<ProgramName>The West Wing</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>Medium</Quality>
<CaptureSource>1</CaptureSource>
</Recording>
[/QUOTE]

This specifies that the recordings that happen on Channel 4, for the West Wing have higher priority than the ones that are on Channel 37, and if there is a scheduling conflict where Channel 37 has been scheduled, then the episode on Channel 37 is canceled, and the episode for Channel 4 is scheduled.

You can use this scenario to record reruns at a lower priority than recodings at the higher priority channel. This way the most current season episodes are recorded before the reruns are recorded.



Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#3
2005-02-10, 08:31 PM
Do you have any example C# code for accessing and managing all this from a plug-in. I;d love to add support to the video archive plug-in but the idea of writting it all from scratch is daunting.

Jeff
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#4
2005-02-10, 08:48 PM
Jeff, there are public classes available in the RecordingUtils.DLL file.

The main methods you'll need are forund in the RecordingUtils namespace:

recordingsToXML() Takes a Collection of Recordings objects, and writes them to the PriorityRecordings.xml

getPriorityDOM() returns an XML Dom object with all the priorites recordings.

getConfig() - sets the RecordingUtils configuration options from the PriorityRecordings.xml file.

getSeasonRecordings() - Takes a PrioritityRecordings XML Dom object and returns a collection of Recordings objects.

The Recordings object contains all the necessary getter and setters to set the various settings.

There are several other public methods that can be used as well, to manage the file, but those are the main ones.

Sample code:
RecordingUtils recordingUtil = new RecordingUtils();
XmlDocument priorityXML = recordingUtil.getPriorityDOM();
recordingUtil.getConfig();
IList recordings = recordingUtil.getSeasonRecordings();

From there you should be able to manipulate the Recordings as you need to. Also, to create a new recording, just create new object based on the Recordings object.



jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#5
2005-02-11, 01:02 AM
Jeff,

I would ask Jorm for code about accessing the CDK scheduler. He is doing it in XRecord.

I would also recommend have more than one screen to manage or view the data - it's is quite large and daunting.

FYI:
I plan to add a time adjustment (to record items that are in conflict by x minutes, e.g. anything that start at 9 when Lost ends at 9:01). I also plan to support multiple tuners.

This work will wait until I finish my guide replacement. The guide replacement will integrate with XRecord scheduler.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-02-16, 05:01 AM
The Lost/West Wing Conflict Scheduling Scenario, work around:

Here is something you might be able to try with the CDK Scheduler. This tip came from a TIVO Tips Manual, and should work with the CDK Scheduler.

1. Setup CDK Scheduler so that Manual Recordings get a priority of 9999. This is the lowest priority for a recording that CDK Scheduler doesn't know about.

2. Add Priority Recordings for Lost and West Wing in this order:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<Recording type="Season" priority="1">
<Channel>6</Channel>
<ProgramName>Lost</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>Medium</Quality>
<CaptureSource>1</CaptureSource>
<Padding>
<PrePadding>1</PrePadding>
<PostPadding>1</PostPadding>
</Padding>
</Recording>
<Recording type="Season" priority="2">
<Channel>4</Channel>
<ProgramName>The West Wing</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>Medium</Quality>
<CaptureSource>1</CaptureSource>
<Padding>
<PrePadding>1</PrePadding>
<PostPadding>1</PostPadding>
</Padding>
</Recording>
[/QUOTE]
Note: Change the priorities to whatever best fits your preference. But they must come in the above order.

3. Save your PriorityRecordings.xml file.

Next time that Lost and West Wing are to be scheduled here is what should happen. GBPVR will manually schedule the &quot;The West Wing&quot; from 9:03 - 10:00 (or whatever manual time you specify).

After scheduling this, CDK Scheduler will run in the PostUpdateEPG.bat file. This will then schedule Lost on ABC (Channel 6 for me), and will try to Schedule the &quot;The Priority Recording&quot; west wing. However since there is a conflict, because of Lost it won't schedule The West wing. So on those days that both The West Wing and Lost are running, you'll get the Priority recording Lost Episode, and the Manually Scheduled West Wing with the first two minutes cut off. Now, where the nice feature comes in, is when for some reason ABC doesn't air Lost. Now the priority recording The West Wing will override the lower priority Manual Recording of the West Wing, and replace it. Thus you get the complete show instead of missing the first few minutes of the show.

Again, this work around will be a moot point with an upcoming release of CDK Scheduler, because it will add the ability to adjust the recording start time and end time for a program. You'll be able to specify the number of minutes to adjust it. Now I haven't tried the above yet, but it should work.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#7
2005-02-16, 01:11 PM
And I do promise the time adjustment and multiple capture sources is coming out soon.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#8
2005-02-19, 09:13 PM
hi kingargyle

your scheduler is fine ;-)
but i still got problems, maybe you can help me.

i want to record duplicates, example:

enterprise starts on
 saturday, 17:30 and sunday 04:30 (rerun); episode 1
 sunday, 15:00 and monday 03:30 (rerun); episode 2

i want to record ALL episodes and reruns, but the scheduler only recorded the first episode.

here´s my priorityrecordings.xml:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<?xml version="1.0" encoding="UTF-8"?>
<GBPVR d1p1:noNamespaceSchemaLocation="C:\Programme\devnz\gbpvr\PriorityRecordings.xsd" xmlns:d1p1="http://www.w3.org/2001/XMLSchema-instance">
 <Configuration>
   <MissingRecordingPriority>0</MissingRecordingPriority>
   <Conflicts>Keep</Conflicts>
   <DuplicatesAllowed>Yes</DuplicatesAllowed>
 </Configuration>
 <Recording type="Season" priority="1">
   <Channel>4</Channel>
   <ProgramName>Enterprise</ProgramName>
   <RecordingType>All Episodes</RecordingType>
   <Quality>High</Quality>
   <CaptureSource>1</CaptureSource>
   <Duplicates>
     <Recorded>Yes</Recorded>
     <Scheduled>Yes</Scheduled>
   </Duplicates>
   <Padding>
     <PrePadding>5</PrePadding>
     <PostPadding>10</PostPadding>
   </Padding>
 </Recording>
</GBPVR>
[/QUOTE]

i tested all combinations i find, but no success. with xrecord too.

can you also please post a sample for a manual recording, like:

every friday, channel 8, quality high, start 20:10, end 23:00, name prefix &quot;test123_...&quot;



thx for help



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#9
2005-02-19, 09:44 PM
[b Wrote:Quote[/b] (mz-system @ Feb. 19 2005,16:13)]
I have both of these setup and running everyday. These should work for you.

Time Restricted, and Day of Week restricted example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<Recording type="Season" priority="5">
<Channel>29</Channel>
<ProgramName>Newlyweds: Nick &amp;amp; Jessica</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>Medium</Quality>
<CaptureSource>1</CaptureSource>
<LimitDays>
<DaysOfWeek>Wednesday</DaysOfWeek>
</LimitDays>
<ScheduleTime>
<Start time="21:00"/>
<End time="23:00"/>
</ScheduleTime>
<Padding>
<PrePadding>1</PrePadding>
<PostPadding>1</PostPadding>
</Padding>
</Recording>
[/QUOTE]

Change the Channel to 8, change the Quality to High, Start time 20:10, end 23:00. You will still need a program name or or a search sequence for it to look for in the guide. If it is a true manual recording where you don't have a guide, you'll need to still use the Manual record option in GBPVR, as the scheduler relies on episode guide information.

Record all shows including duplicates:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<Recording type="Season" priority="4">
<Channel>4</Channel>
<ProgramName>The West Wing</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>Medium</Quality>
<CaptureSource>1</CaptureSource>
<Padding>
<PrePadding>0</PrePadding>
<PostPadding>0</PostPadding>
</Padding>
</Recording>
[/QUOTE]
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#10
2005-02-21, 11:43 AM
sorry, but it don´t work. i use the binaries from CDKScheduler_XRecordFix.zip

here´s my priorityrecordings.xml:

[b Wrote:Quote[/b] ]
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;GBPVR d1p1:noNamespaceSchemaLocation=&quot;C:\Programme\devnz\gbpvr\PriorityRecordings.xsd&quot; xmlns:d1p1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
 &lt;Configuration&gt;
   &lt;MissingRecordingPriority&gt;0&lt;/MissingRecordingPriority&gt;
   &lt;Conflicts&gt;Keep&lt;/Conflicts&gt;
   &lt;DuplicatesAllowed&gt;Yes&lt;/DuplicatesAllowed&gt;
 &lt;/Configuration&gt;
 &lt;Recording type=&quot;Season&quot; priority=&quot;3&quot;&gt;
   &lt;Channel&gt;4&lt;/Channel&gt;
   &lt;ProgramName&gt;Enterprise&lt;/ProgramName&gt;
   &lt;RecordingType&gt;All Episodes&lt;/RecordingType&gt;
   &lt;Quality&gt;High&lt;/Quality&gt;
   &lt;CaptureSource&gt;1&lt;/CaptureSource&gt;
   &lt;ScheduleTime&gt;
     &lt;Start time=&quot;02:00&quot;/&gt;
     &lt;End time=&quot;06:00&quot;/&gt;

   &lt;/ScheduleTime&gt;
   &lt;Padding&gt;
     &lt;PrePadding&gt;3&lt;/PrePadding&gt;
     &lt;PostPadding&gt;8&lt;/PostPadding&gt;
   &lt;/Padding&gt;
 &lt;/Recording&gt;
&lt;/GBPVR&gt;

search guide find &quot;Enterprise&quot;:

26.02.2005 17:30  &quot;Countdown&quot;
27.02.2005 03:45  &quot;Countdown&quot;
27.02.2005 15:00  &quot;Stunde Null&quot;
28.02.2005 03:25  &quot;Stunde Null&quot;

here´s the output of priorityrecording.exe:

[b Wrote:Quote[/b] ]
GBPVR External Recording Manager - v0.1.0 Beta
Loading Known Recordings.
Number of Known Recordings: 12
Number of Priority Recordings: 1
Number of Recordings in Conflict Status: 0
Checking Total Potential Priority Recordings.
Enterprise has 8 potential recording(s).
Total Potential Recordings Found: 8
Total Priority Recordings to be Scheduled: 1
Temporarirly removing conflict status recordings.
Scheduling Recordings.
Start Time: Montag, 21. Februar 2005 12:41:55
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)

Added: Enterprise ChannelOID: 22 Date: 26.02.2005 17:30
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)

Added: Enterprise ChannelOID: 22 Date: 27.02.2005 15:00
Done.

by tests i find out that priorityrecording.exe ignored &lt;channel&gt; and &lt;scheduletime&gt;.

another test, record friends:

search guide:
21.02.2005  18:45
22.02.2005  18:45
23.02.2005  18:45
24.02.2005  18:45
25.02.2005  18:45

27.02.2005  12:10


priorityrecordings.xml:
[b Wrote:Quote[/b] ]
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;GBPVR d1p1:noNamespaceSchemaLocation=&quot;C:\Programme\devnz\gbpvr\PriorityRecordings.xsd&quot; xmlns:d1p1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
 &lt;Configuration&gt;
   &lt;MissingRecordingPriority&gt;0&lt;/MissingRecordingPriority&gt;
   &lt;Conflicts&gt;Keep&lt;/Conflicts&gt;
   &lt;DuplicatesAllowed&gt;Yes&lt;/DuplicatesAllowed&gt;
 &lt;/Configuration&gt;
 &lt;Recording type=&quot;Season&quot; priority=&quot;3&quot;&gt;
   &lt;Channel&gt;7&lt;/Channel&gt;

   &lt;ProgramName&gt;Friends&lt;/ProgramName&gt;
   &lt;RecordingType&gt;All Episodes&lt;/RecordingType&gt;
   &lt;Quality&gt;Medium&lt;/Quality&gt;
   &lt;CaptureSource&gt;1&lt;/CaptureSource&gt;
   &lt;ScheduleTime&gt;
     &lt;Start time=&quot;18:00&quot;/&gt;
     &lt;End time=&quot;20:00&quot;/&gt;
   &lt;/ScheduleTime&gt;

   &lt;Padding&gt;
     &lt;PrePadding&gt;3&lt;/PrePadding&gt;
     &lt;PostPadding&gt;8&lt;/PostPadding&gt;
   &lt;/Padding&gt;
 &lt;/Recording&gt;
&lt;/GBPVR&gt;

output priorityrecording.exe:

[b Wrote:Quote[/b] ]
GBPVR External Recording Manager - v0.1.0 Beta
Loading Known Recordings.
Number of Known Recordings: 12
Number of Priority Recordings: 1
Number of Recordings in Conflict Status: 0
Checking Total Potential Priority Recordings.
Friends has 7 potential recording(s).
Total Potential Recordings Found: 7
Total Priority Recordings to be Scheduled: 1
Temporarirly removing conflict status recordings.
Scheduling Recordings.
Start Time: Montag, 21. Februar 2005 12:54:50
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)
Added: Friends ChannelOID: 19 Date: 27.02.2005 12:10
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)
Added: Friends ChannelOID: 10 Date: 21.02.2005 18:45
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)
Added: Friends ChannelOID: 10 Date: 22.02.2005 18:45
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)
Added: Friends ChannelOID: 10 Date: 23.02.2005 18:45
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)
Added: Friends ChannelOID: 10 Date: 24.02.2005 18:45
Not a Duplicate
Die angegebene Umwandlung ist ungültig.
  at System.Data.OleDb.DBBindings.get_ValueInt32()
  at System.Data.OleDb.OleDbDataReader.GetInt32(Int32 ordinal)
  at RecordingUtils.RecordingUtils.getScheduledProgramOID(Int32 oid)
Added: Friends ChannelOID: 10 Date: 25.02.2005 18:45
Done.



« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  EPG Scheduler MixMan 16 9,008 2009-07-22, 03:09 PM
Last Post: zehd
  CDK Scheduler Instructions for v98 or above KingArgyle 0 895 2007-01-21, 03:26 PM
Last Post: KingArgyle
  CDK Scheduler 1.0.1 Service Pack 1 Released KingArgyle 5 2,750 2006-11-25, 08:12 PM
Last Post: KingArgyle
  CDK Scheduler Wiki Updated KingArgyle 0 1,241 2005-10-05, 02:54 PM
Last Post: KingArgyle
  CDK Scheduler Update KingArgyle 0 1,457 2005-09-23, 04:31 AM
Last Post: KingArgyle
  CDK Scheduler (External Recordings Manager) KingArgyle 7 3,430 2005-02-14, 12:59 AM
Last Post: KingArgyle

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

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

Linear Mode
Threaded Mode