NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 77 78 79 80 81 … 93 Next »
External Recordings Manager

 
  • 0 Vote(s) - 0 Average
External Recordings Manager
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#61
2005-01-20, 01:59 PM
I'm looking for feature requests... if you have any let me know.

My first order of business is to take a good look at the code and with your help, come up with a list of enhancements.
scooby_doo
Offline

Member

Posts: 51
Threads: 11
Joined: Dec 2004
#62
2005-01-20, 07:34 PM
Are there still plans to eventually add support so that it won't recor d shows that have already been recorded? I remember kingargyle saying he was laying the groundwork and got in a discussion with Maestro who had already been working on some code.

http://gbpvr.com/cgi-bin....06;st=0

This is the last big feature I need from gbpvr.

PS. Congrats KingArgyle and thanks for your work on the external recording manager.



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#63
2005-01-20, 08:22 PM
Hey thanks. Always a little nerv racking switching jobs.

Anyways, to answer your question. I believe not recordings dups is the first thing on Jrocks own list. So that probably will be one of the first enhancements.

I hate leaving things almost finished, but just couldn't devote the time anymore (many a long night spent working on the code (2am - 3am mornings)).



smeghead
Offline

Senior Member

Posts: 300
Threads: 23
Joined: Jan 2005
#64
2005-01-20, 08:43 PM
Oooooo nested comments.....

Anyway, thanks for all your efforts and best of luck with the new job.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#65
2005-01-20, 09:31 PM
KingArgyle is correct... Dups are the number one priority for me.

But I do want to hear what everyone else wants.

I seriously doubt I will be as quick as King Argyle with updates... well, at least initially.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#66
2005-01-31, 12:03 PM
@kingargyle:

hi, i tested your recordingmanager, but i still got problems:

C:\Programme\devnz\gbpvr>PriorityRecording.exe
GBPVR External Recording Manager - v0.1.0 Beta
Loading Known Recordings.
Number of Known Recordings: 17
Number of Priority Recordings: 2
Number of Recordings in Conflict Status: 0
Checking Total Potential Priority Recordings.
Enterprise has 7 potential recording(s).
CSI: Miami has 2 potential recording(s).
Total Potential Recordings Found: 9
Total Priority Recordings to be Scheduled: 2
Temporarirly removing conflict status recordings.
Scheduling Recordings.
Start Time: Montag, 31. Januar 2005 12:59:57
Der Datensatz kann nicht hinzugefügt oder geändert werden, da ein Datensatz in d
er Tabelle 'CAPTURE_SOURCE' mit diesem Datensatz in Beziehung stehen muss.
  at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
  at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARA
MS dbParams, Object& executeResult)
  at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
  at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Ob
ject& executeResult)
  at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behav
ior, String method)
  at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
  at RecordingUtils.RecordingUtils.addRecording(Programme program, Recordings r
ecording)
Done.

in the db my capturesource are 3 + 4. when i try to use 3 or 4
i get another error:

C:\Programme\devnz\gbpvr>PriorityRecording.exe
GBPVR External Recording Manager - v0.1.0 Beta
Loading Known Recordings.
Number of Known Recordings: 17

Unhandled Exception: System.Xml.Schema.XmlSchemaException: The 'CaptureSource' e
lement has an invalid value according to its data type. An error occurred at fil
e:///C:/Programme/devnz/gbpvr/PriorityRecordings.xml, (12, 21).
  at System.Xml.XmlValidatingReader.InternalValidationCallback(Object sender, V
alidationEventArgs e)
  at System.Xml.Schema.Validator.SendValidationEvent(XmlSchemaException e, XmlS
everityType severity)
  at System.Xml.Schema.Validator.SendValidationEvent(String code, String arg)
  at System.Xml.Schema.Validator.CheckValue(String value, SchemaAttDef attdef)
  at System.Xml.Schema.Validator.EndChildren()
  at System.Xml.Schema.Validator.Validate()
  at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
  at System.Xml.XmlValidatingReader.Read()
  at System.Xml.XmlLoader.LoadChildren(XmlNode parent)
  at System.Xml.XmlLoader.LoadElementNode()
  at System.Xml.XmlLoader.LoadCurrentNode()
  at System.Xml.XmlLoader.LoadCurrentNode()
  at System.Xml.XmlLoader.LoadChildren(XmlNode parent)
  at System.Xml.XmlLoader.LoadElementNode()
  at System.Xml.XmlLoader.LoadCurrentNode()
  at System.Xml.XmlLoader.LoadCurrentNode()
  at System.Xml.XmlLoader.LoadChildren(XmlNode parent)
  at System.Xml.XmlLoader.LoadElementNode()
  at System.Xml.XmlLoader.LoadCurrentNode()
  at System.Xml.XmlLoader.LoadCurrentNode()
  at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
  at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean prese
rveWhitespace)
  at System.Xml.XmlDocument.Load(XmlReader reader)
  at RecordingUtils.RecordingUtils.getPriorityDOM()
  at PriorityRecording.RecordingManager.Main(String[] args)

is there the posibility to use a wildcard for the capturesource like "use the next free"??

p.s. the path is no more hardcoded, thats fine Wink



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#67
2005-01-31, 02:31 PM
Currently, the External Recording Manager only supports one capture source, and it expects it to be 1 in the database. To get it to work with a Capture Source other than 1 do the following in the XSD:

The third line of the XSD should start something like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<xs:element name="CaptureSource">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
[/QUOTE]

Change it to the following:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<xs:element name="CaptureSource">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
[/QUOTE]



This will allow you to specify more than one capture source.

You should be able to specify programs to use either Capture Source 3 or Capture Source 4.

A thing to note howerver, the Conflict checking logic currently doesn't check to see which capture source the program is going to be scheduled, so you may detect some conflicts incorrectly.

Let Jrock or I know if you have any other problems.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#68
2005-01-31, 03:42 PM
great! now it works.

but how can i turn off the conflict detection, there are more problems with more then 1 capture-source if there are more than 1 show at the same time?

output from a test:

C:\Programme\devnz\gbpvr&gt;PriorityRecording.exe
GBPVR External Recording Manager - v0.1.0 Beta
Loading Known Recordings.
Number of Known Recordings: 16
Number of Priority Recordings: 2
Number of Recordings in Conflict Status: 0
Checking Total Potential Priority Recordings.
heute/Wetter has 7 potential recording(s).
Tagesschau has 111 potential recording(s).
Total Potential Recordings Found: 118
Total Priority Recordings to be Scheduled: 2
Temporarirly removing conflict status recordings.
Scheduling Recordings.
Start Time: Montag, 31. Januar 2005 16:45:34
Added: Tagesschau ChannelOID: 87 Date: 31.01.2005 17:00
Added: Tagesschau ChannelOID: 87 Date: 31.01.2005 17:47
checkScheduleConflict: Program Conflict
Current Program: heute/Wetter Date: 31.01.2005 17:00
Scheduled Program: Tagesschau Date: 31.01.2005 17:00
Adding to Conflict List: heute/Wetter
Re-Adding Conflict Programs
Der Datensatz kann nicht hinzugefügt oder geändert werden, da ein Datensatz in d
er Tabelle 'CAPTURE_SOURCE' mit diesem Datensatz in Beziehung stehen muss.
  at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
  at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARA
MS dbParams, Object&amp; executeResult)
  at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object&amp; executeResult)
  at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Ob
ject&amp; executeResult)
  at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behav
ior, String method)
  at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
  at RecordingUtils.RecordingUtils.addConflicts(IList conflictRecordings)
Conflicts Re-Added.
Done.

my priorityrecordings.xml:

<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>2</Channel>
<ProgramName>heute/Wetter</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>High</Quality>
<CaptureSource>3</CaptureSource>
<LimitDays>
<DaysOfWeek>Monday</DaysOfWeek>
</LimitDays>
<ScheduleTime>
<Start time="16:00"></Start>
<End time="18:00"></End>
</ScheduleTime>
<Padding>
<PrePadding>2</PrePadding>
<PostPadding>3</PostPadding>
</Padding>
</Recording>

<Recording type="Season" priority="1">
<Channel>1</Channel>
<ProgramName>Tagesschau</ProgramName>
<RecordingType>All Episodes</RecordingType>
<Quality>High</Quality>
<CaptureSource>4</CaptureSource>
<LimitDays>
<DaysOfWeek>Monday</DaysOfWeek>
</LimitDays>
<ScheduleTime>
<Start time="16:00"></Start>
<End time="18:00"></End>
</ScheduleTime>
<Padding>
<PrePadding>2</PrePadding>
<PostPadding>3</PostPadding>
</Padding>
</Recording>
[/QUOTE]


thx for help



KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#69
2005-01-31, 03:57 PM
Here is a work around for you on the Conflict resolution, it isn't ideal, but should get you going for most stuff.

In the PriorityRecordings.xml file, set your Configuration element as follows:

&lt;Configuration&gt;
&lt;MissingRecordingPriority&gt;0&lt;/MissingRecordingPriority&gt;
&lt;Conflicts&gt;Keep&lt;/Conflicts&gt;
&lt;/Configuration&gt;

This tells the ERM that shows that it finds that aren't in the PriorityRecordings.xml are to be given the highest priority, and that any conflicts that it finds are to be kept (i.e. put in Conflict status for manual resolution).

Put the shows that you want to be scheduled by the ERM in the PriorityRecordings.XML file, and you can still put some other shows that may show up at the same time in GBPVR so that they get the secondary tuner used.

What shows are you recording that come on at the same time? Might help Jrock and I look into the code to see what we can do to get it to work better with more than one tuner.
mz-system
Offline

Member

Posts: 56
Threads: 14
Joined: Dec 2004
#70
2005-01-31, 07:37 PM
thx, now it works.

the shows are scheduled, but don´t recorded.......

no more time today, i tested tomorrow
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Import/export recordings via API? whurlston 4 3,899 2019-02-19, 11:48 AM
Last Post: Graham
  Conflict recordings scJohn 1 2,643 2018-03-23, 07:43 PM
Last Post: sub
  API / web call for setting recordings Pbathuk 2 3,394 2018-01-13, 05:17 AM
Last Post: Pbathuk
  API access to artwork and deleting recordings cncb 29 16,027 2016-11-06, 02:20 AM
Last Post: mvallevand
  How to move recordings without them getting deleted from db drmargarit 4 3,996 2015-09-27, 05:33 PM
Last Post: sub
  Best approach to creating recurring recordings from c# drmargarit 0 2,667 2015-09-27, 01:32 AM
Last Post: drmargarit
  Changing the recording priority on recurring recordings cbgifford 4 3,903 2014-08-17, 03:13 PM
Last Post: Kiwi
  How does NextPVR group recordings for XBMC? spinnaker 2 2,375 2013-11-21, 01:33 AM
Last Post: spinnaker
  Web API call for Ready recordings? bgowland 2 1,945 2013-11-03, 12:43 AM
Last Post: bgowland
  Delete recordings from database but not from disk? spinnaker 8 3,944 2013-10-26, 10:51 PM
Last Post: spinnaker

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

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

Linear Mode
Threaded Mode