Skip to content

Commit

Permalink
Make Service API conform to new deletion behavior.
Browse files Browse the repository at this point in the history
Since the recent change to always lazy delete, the API returns these
items too, which is bad-- Don't return items from the deleted RecGroup
with the GetRecordedList API-- if the user really wants these, they can
call out the rec group explicitly with the GetFilteredRecordedList.
  • Loading branch information
Robert McNamara committed Apr 1, 2012
1 parent a38f191 commit 8a3ab52
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mythtv/programs/mythbackend/services/dvr.cpp
Expand Up @@ -99,9 +99,12 @@ DTC::ProgramList* Dvr::GetFilteredRecordedList( bool bDescending,
for( int n = nStartIndex; n < nEndIndex; n++)
{
ProgramInfo *pInfo = progList[ n ];
DTC::Program *pProgram = pPrograms->AddNewProgram();
if (pInfo->GetRecordingGroup() != "Deleted")
{
DTC::Program *pProgram = pPrograms->AddNewProgram();

FillProgramInfo( pProgram, pInfo, true );
FillProgramInfo( pProgram, pInfo, true );
}
}
}
else
Expand Down

0 comments on commit 8a3ab52

Please sign in to comment.