Skip to content

Commit

Permalink
Set folder date to the date of the most recent recording it contain.
Browse files Browse the repository at this point in the history
  • Loading branch information
jajoflo authored and margro committed Apr 19, 2012
1 parent 1e5280c commit 3c083cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xbmc/pvr/recordings/PVRRecordings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,16 @@ void CPVRRecordings::GetSubDirectories(const CStdString &strBase, CFileItemList
pFileItem->SetPath(strFilePath);
pFileItem->SetLabel(strCurrent);
pFileItem->SetLabelPreformated(true);
pFileItem->m_dateTime = current->RecordingTimeAsLocalTime();
results->Add(pFileItem);
}
else
{
CFileItemPtr pFileItem;
pFileItem=results->Get(strFilePath);
if (pFileItem->m_dateTime<current->RecordingTimeAsLocalTime())
pFileItem->m_dateTime = current->RecordingTimeAsLocalTime();
}
}

CFileItemList files;
Expand Down

0 comments on commit 3c083cf

Please sign in to comment.