Permalink
Browse files

Make Service API conform to new deletion behavior.

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 authored and daniel-kristjansson committed Apr 1, 2012
1 parent 87b360e commit bd3bf9f84f12012f8c88ae2e080317334c31965b
Showing with 5 additions and 2 deletions.
  1. +5 −2 mythtv/programs/mythbackend/services/dvr.cpp
@@ -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

0 comments on commit bd3bf9f

Please sign in to comment.