diff --git a/skinskeleton/xmlfiles/displaymenudetailrecording.xml b/skinskeleton/xmlfiles/displaymenudetailrecording.xml index 0fa3a21..23d1417 100644 --- a/skinskeleton/xmlfiles/displaymenudetailrecording.xml +++ b/skinskeleton/xmlfiles/displaymenudetailrecording.xml @@ -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 --> @@ -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 diff --git a/views/displaymenudetailview.c b/views/displaymenudetailview.c index 527db7e..81040ff 100644 --- a/views/displaymenudetailview.c +++ b/views/displaymenudetailview.c @@ -413,7 +413,12 @@ void cDisplayMenuDetailView::LoadRecordingInformation(void) { cChannel *channel = Channels.GetByChannelID(Info->ChannelID()); if (channel) { stringTokens.insert(pair("recchannelname", channel->Name())); + stringTokens.insert(pair("recchannelid", *channel->GetChannelID().ToString())); intTokens.insert(pair("recchannelnumber", channel->Number())); + } else { + stringTokens.insert(pair("recchannelname", "")); + stringTokens.insert(pair("recchannelid", "")); + intTokens.insert(pair("recchannelnumber", 0)); } if (index) { @@ -735,6 +740,16 @@ void cDisplayMenuDetailView::DrawHeader(void) { headerIntTokens.insert(pair("durationeventhours", duration / 60)); headerStringTokens.insert(pair("durationeventminutes", *cString::sprintf("%.2d", duration%60))); } + cChannel *channel = Channels.GetByChannelID(info->ChannelID()); + if (channel) { + headerStringTokens.insert(pair("recchannelname", channel->Name())); + headerStringTokens.insert(pair("recchannelid", *channel->GetChannelID().ToString())); + headerIntTokens.insert(pair("recchannelnumber", channel->Number())); + } else { + headerStringTokens.insert(pair("recchannelname", "")); + headerStringTokens.insert(pair("recchannelid", "")); + headerIntTokens.insert(pair("recchannelnumber", 0)); + } } else { headerStringTokens.insert(pair("shorttext", "")); int recDuration = recording->LengthInSeconds(); @@ -747,6 +762,9 @@ void cDisplayMenuDetailView::DrawHeader(void) { headerIntTokens.insert(pair("durationevent", 0)); headerIntTokens.insert(pair("durationeventhours", 0)); headerStringTokens.insert(pair("durationeventminutes", "")); + headerStringTokens.insert(pair("recchannelname", "")); + headerStringTokens.insert(pair("recchannelid", "")); + headerIntTokens.insert(pair("recchannelnumber", 0)); } string recImage = "";