[mythtv-users] Making a recording no longer damaged

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Jul 1 11:36:46 UTC 2013


On Wed, 26 Jun 2013 15:04:41 -0400, you wrote:

>I've been using the Import Test Recorder and script to record using
>HDPVRCapture on a Mac.
>
>One problem I'm finding is that all the recordings are marked damaged (They
>appear in yellow) and it tries to record them again. I think this happens
>because it take more then 10 seconds for the file to appear after it should
>have started because of how long HDPVRCapture takes to start recording.
>This 10 second limit is hardcoded.
>
>I tried setting duplicate to 1 and changing recstatus from -9 to -3 in
>oldrecorded. This seems to keep it from recording again but it still
>appears yellow. What is the best way to make a recording undamaged.

I am also using the Import Test Recorder and event scripts to record
FM radio from a Hauppauge PVR-150 card.  Here is the bash code I have
in my "event-finished-recording.sh" script to get rid of the DAMAGED
status:

	# Fix up recordedprogram.videoprop (which will currently be
set to DAMAGED).
	$(mysql -u $DBUserName -p$DBPassword -h $DBHostName $DBName -s
-e "update recorded r,recordedprogram rp set rp.videoprop='' where
r.basename='$file' and rp.chanid=r.chanid and rp.starttime=r.progstart
and rp.videoprop='DAMAGED';")
	rc=$?
	echo `date` "$me mysql update of recordedprogram.videoprop to
'' returned $rc" >>$log

>In an unrelated question, in which table are the stored searches stored?


More information about the mythtv-users mailing list