From a66cf84a96b425890fe5f6a8b78013c3a75ea603 Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 9 Jan 2013 19:01:15 +0100 Subject: Fixed showing current show as rerun in epg detail view --- menudetailview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menudetailview.c b/menudetailview.c index 491da25..d8b73c5 100644 --- a/menudetailview.c +++ b/menudetailview.c @@ -84,10 +84,11 @@ void cNopacityMenuDetailView::LoadReruns(const cEvent *event) { if (epgSearchPlugin->Service("Epgsearch-searchresults-v1.0", &data)) { cList* list = data.pResultList; if (list && (list->Count() > 1)) { - //TODO: current event is shown as rerun sstrReruns << tr("RERUNS OF THIS SHOW") << ':' << std::endl; int i = 0; for (Epgsearch_searchresults_v1_0::cServiceSearchResult *r = list->First(); r && i < config.numReruns; r = list->Next(r)) { + if ((event->ChannelID() == r->event->ChannelID()) && (event->StartTime() == r->event->StartTime())) + continue; i++; sstrReruns << "- " << *DayDateTime(r->event->StartTime()); -- cgit v1.2.3