I am trying to write a command line program to deal with unique_id across and I expect it won't be too difficult, but I have a couple of questions
1) Is this the right command to use for scheduling unique recordings
NUtility.ScheduledRecording ScheduleRecording(string name, int channelOID, System.DateTime startTime, System.DateTime endTime, int prePadding, int postPadding, NUtility.RecordingQuality quality, string recordingDirectoryID)
2) I think these recordings are sticky and I will need to delete them. Is that correct?
3) If my command line runs in PostEPGUpdate will ScheduleRecording() fail with null on a conflict on that channel or do I have to make sure the time is open?
(edit)
4) Do I Cancel or Delete recordings? I thought about it and I guess Cancel is scheduled and Delete removes them when they are not status zero. Right?
5) To cancel or deletes is it
Code:
;
int recording_oid = from a lookup;
ScheduledRecording recording = ScheduledRecording.LoadByOID(recording_oid);
if (recording != null)
{
ScheduleHelperFactory.GetScheduleHelper().DeleteRecording(recording);
}
The hard drive on my PVR machine recently crashed, so I am starting from scratch on a new drive with a fresh install of Windows XP SP3. After installing everything, when I run NPVR and go to Settings and Devices, nothing is listed. I have a Hauppauge PRV-150 installed. I installed all the pre-requisites including the Hauppauge drivers and WinTV. I checked AnalogDevices.xml and my card is listed with the same name shown in the FilterCheck log.
On strange thing I noticed is that when I installed NPVR, I got the message "DataDirectory registry setting does not appear to be set correctly. I checked the registry and under HKEY_LOCAL_MACHINE/SOFTWARE/NPVR, DatDirectory did exist with the value "C:\Documents and Settings\All Users\Application Data\NPVR. Any ideas on what is going on?
Install NMTInstall2 (deselected the npvr install option)
Restart PC
Enter Recordings
Left to Ready Recordings
Left ... error thrown (should be Conflicts)
Doesn't work on the PCH-A100 either
If I try to approach the Conflicts screen by scrolling Right, an error is thrown on the PC, on the PCH, I can see it, but it crashes the NMT app and exits.
The error is reproduceable after having restarted the PC.
I have been in the config screen and saved - no difference. One note is, that in the Config screen I was asked to add an alias to my recording directory when I was in there. I guess it's part of the multiple recording directory feature.
Please note, that my recording directory is \\tower\pvr. That recording directory is still functioning.
Unrelated: It appears that it is MUCH faster when i enter the Recordings that before. Don't know why, but I like it
Logs and config.xml attached. Also copy of the Exception window content.
Our broadcasts are typically very well aligned to the times that show in the guide, so I like to use 0 pre-padding to avoid the many attempts to skip that extra minute at the beginning of the show, but this leads to the beginning getting chopped because 0 doesn't take into account the tuning time which can be 2-10 seconds depending if the PC is coming out of sleep. Would it be possible to have global adjustment for this, in seconds.
It's been a while since I watched digital encrypted tv, but it worked before. Now, it doesn't work anymore. Did I delete some decoder?
I reregistered the filters.
Newcs and acamd report no errors.
In the logs:
2012-08-06 17:06:57.450 [DEBUG][1] FindFilterByName failed to locate filter: NPVR TS Reader2
2012-08-06 17:06:57.522 [ERROR][1] Unable to find named decoder
2012-08-06 17:06:57.522 [ERROR][1] Unable to find named decoder
2012-08-06 17:06:58.063 [ERROR][1] ConnectPins: Failed to find output pin named ~CC
2012-08-06 17:06:58.063 [ERROR][1] ConnectPins: Failed to find output pin named ~CC Out
can anyone help me - when i restart my htpc my ir transceiver stops working until i physically unplug the USB cable and replug it back in. I am using the receiver that came with my old Phillips 5100 remote (now broken) with a Logitech Harmony 700 remote. the OS on the machine is Win 7 x64... Not sure what other info might be useful but if anyone else has had a similar issue can you enlighten me
ok, I realize this may not count as a bug, since you probably had no intention of handling this any differently now. But the act of "Archiving" a show kinda implies the user is trying to keep it! So having it count the archived episodes against the "Keep X number of recordings" count, and then delete an episode from the archive location rather defeats the purpose.
I suggest two rules in your code when processing the "Keep X number of recordings" logic:
1. Count only the recordings which are currently stored in the current target recording path for that recurring recording.
2. Only delete the oldest show in the current target recording path for that recurring recording.
edit: also, while I've not tested it recently, I'm pretty sure there's still another bug in the auto-deletion logic that might be worth fixing:
if I am watching the oldest episode of a show when a new recording starts, it will try to delete the show I am watching and of course fail because it's open. but it will still remove the recording from the database, thus leaving the recording file 'orphaned' on the disk. After a few months, these orphans add up to many gigabytes of lost disk space, and I have to go hunting around and clean them up by hand. If the file delete fails, just leave the show in the database and go on... catch it next time.