Permalink
Browse files

Backport of [25383] to release-0.23-fixes.

When updating the recorded table after a recording has ended, don't 
set duplicate=1 if the recording ended abnormally, eg. rsFailed.  This 
let's the scheduler attempt ro re-record the program if the rule type 
allows it. 
 
Refs #3872.  I'm not closing this since there might still be issues 
with deleting zero-length files that this change doesn't try to 
address. 


git-svn-id: http://svn.mythtv.org/svn/branches/release-0-23-fixes@25384 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 22cf84a commit 2b0b81239ad62c518a681820085dad41f0080f67 @gigem gigem committed Jul 20, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/libs/libmythtv/recordinginfo.cpp
@@ -688,12 +688,13 @@ void RecordingInfo::FinishedRecording(bool prematurestop)
{
MSqlQuery query(MSqlQuery::InitCon());
query.prepare("UPDATE recorded SET endtime = :ENDTIME, "
- " duplicate = 1 "
+ " duplicate = :DUPLICATE "
"WHERE chanid = :CHANID AND "
" starttime = :STARTTIME ");
query.bindValue(":ENDTIME", recendts);
query.bindValue(":CHANID", chanid);
query.bindValue(":STARTTIME", recstartts);
+ query.bindValue(":DUPLICATE", !prematurestop);
if (!query.exec())
MythDB::DBError("FinishedRecording update", query);

0 comments on commit 2b0b812

Please sign in to comment.