provide 10 last recordings in <lastrecordings> viewelement

This commit is contained in:
louis 2015-05-22 13:58:48 +02:00
parent b4c82f5066
commit ac70c7bd59
3 changed files with 4 additions and 3 deletions

View File

@ -336,3 +336,4 @@ Version 0.4.6
Version 0.4.7
- fixed crash when deleting menuitem
- fixed ecm time display
- provide 10 last recordings in <lastrecordings> viewelement

View File

@ -20,9 +20,9 @@
<timers detached="false">
</timers>
<!-- Available Variables lastrecordings: 5 newest recordings
<!-- Available Variables lastrecordings: 10 newest recordings
{numtimers} number of active timers
{recordings[]} array with 5 newest recordings
{recordings[]} array with 10 newest recordings
{recordings[name]} name of recording
{recordings[seriesname]} series name if available
{recordings[date]} date of recording in dd.mm.yy

View File

@ -873,7 +873,7 @@ void cViewHelpers::SetLastRecordings(map<string,int> *intTokens, map<string,stri
recVals.insert(pair< string, string >("recordings[posterheight]", sPosterHeight.str()));
lastRecordings->push_back(recVals);
found++;
if (found == 5)
if (found == 10)
break;
}
}