added channel info to displaymenudetailrecording

This commit is contained in:
louis 2015-01-13 09:31:00 +01:00
parent c188d8f190
commit 0c1e557f70
2 changed files with 24 additions and 0 deletions

View File

@ -25,6 +25,9 @@
{bannerpath} path of banner
{recimgavailable} true if a recording image is available in the recording path
{recimgpath} path of rec image
{recchannelname} name of channel from which was recorded
{recchannelid} id of channel from which was recorded
{recchannelnumber} number of channel from which was recorded
-->
<detailheader>
</detailheader>
@ -51,6 +54,9 @@
{recordingbitrate} bitrate of recording (in MBit/s)
{recordingformat} format of recording (TS / PS)
{searchtimer} name of accordign searchtimer (if available)
{recchannelname} name of channel from which was recorded
{recchannelid} id of channel from which was recorded
{recchannelnumber} number of channel from which was recorded
{recimg1avaialble} true if first recording image is available
{recimg2avaialble} true if first recording image is available

View File

@ -413,7 +413,12 @@ void cDisplayMenuDetailView::LoadRecordingInformation(void) {
cChannel *channel = Channels.GetByChannelID(Info->ChannelID());
if (channel) {
stringTokens.insert(pair<string,string>("recchannelname", channel->Name()));
stringTokens.insert(pair<string,string>("recchannelid", *channel->GetChannelID().ToString()));
intTokens.insert(pair<string,int>("recchannelnumber", channel->Number()));
} else {
stringTokens.insert(pair<string,string>("recchannelname", ""));
stringTokens.insert(pair<string,string>("recchannelid", ""));
intTokens.insert(pair<string,int>("recchannelnumber", 0));
}
if (index) {
@ -735,6 +740,16 @@ void cDisplayMenuDetailView::DrawHeader(void) {
headerIntTokens.insert(pair<string,int>("durationeventhours", duration / 60));
headerStringTokens.insert(pair<string,string>("durationeventminutes", *cString::sprintf("%.2d", duration%60)));
}
cChannel *channel = Channels.GetByChannelID(info->ChannelID());
if (channel) {
headerStringTokens.insert(pair<string,string>("recchannelname", channel->Name()));
headerStringTokens.insert(pair<string,string>("recchannelid", *channel->GetChannelID().ToString()));
headerIntTokens.insert(pair<string,int>("recchannelnumber", channel->Number()));
} else {
headerStringTokens.insert(pair<string,string>("recchannelname", ""));
headerStringTokens.insert(pair<string,string>("recchannelid", ""));
headerIntTokens.insert(pair<string,int>("recchannelnumber", 0));
}
} else {
headerStringTokens.insert(pair<string,string>("shorttext", ""));
int recDuration = recording->LengthInSeconds();
@ -747,6 +762,9 @@ void cDisplayMenuDetailView::DrawHeader(void) {
headerIntTokens.insert(pair<string,int>("durationevent", 0));
headerIntTokens.insert(pair<string,int>("durationeventhours", 0));
headerStringTokens.insert(pair<string,string>("durationeventminutes", ""));
headerStringTokens.insert(pair<string,string>("recchannelname", ""));
headerStringTokens.insert(pair<string,string>("recchannelid", ""));
headerIntTokens.insert(pair<string,int>("recchannelnumber", 0));
}
string recImage = "";