diff options
-rw-r--r-- | epghandler.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/epghandler.c b/epghandler.c index 90c8434..a80600c 100644 --- a/epghandler.c +++ b/epghandler.c @@ -41,17 +41,14 @@ bool cEEpgHandler::HandleEitEvent(cSchedule* Schedule, int nid = schedule->ChannelID().Nid(); if ((nid >= 0x1001 && nid <= 0x100B) || nid == 0x101 || nid == 0x100 || nid == 0x233A) { //Set the Format for Eit events so that the new lines are not erased with FixEpgBugs - EFormat Format = DISH_BEV; + EFormat Format; if (nid == 0x233A) Format = FREEVIEW; else Format = DISH_BEV; SI::cEIT2 eit2(Schedule, Format); eit2.ProcessEitEvent(Schedule, EitEvent, TableID, Version); return true; - } - /*else if (nid == 0x233A) { - Format = FREEVIEW; - } */ + } //TODO Should it be added in setup? if (EitEvent->getDurationHour() > _LONG_EVENT_HOURS) { @@ -129,8 +126,6 @@ void cEEpgHandler::FindDuplicate(cEvent* Event, const char* newTitle) bool cEEpgHandler::SetTitle(cEvent* Event, const char* Title) { LogD(3, prep("Event id:%d title:%s new title:%s"), Event->EventID(), Event->Title(), Title); - //char buffer[Utf8BufSize(256)]; - //decodeText2((uchar*)Title, strlen(Title), buffer, sizeof(buffer)); const char* title = charsetFixer->FixCharset(Title); //Sometimes same events overlap and have different EventID @@ -155,13 +150,7 @@ bool cEEpgHandler::SetShortText(cEvent* Event, const char* ShortText) { origShortText.clear(); } - const char* shText; - char buffer[Utf8BufSize(256)]; -/* if (ShortText && Format == FREEVIEW) { - decodeText2((uchar*)ShortText, strlen(ShortText), buffer, sizeof(buffer)); - shText = charsetFixer->FixCharset(buffer); - } else */ - shText = charsetFixer->FixCharset(ShortText); + const char* shText = charsetFixer->FixCharset(ShortText); //if (!Event->ShortText() || ShortText && (!strcmp(Event->ShortText(),"") || (strcmp(ShortText,"") && strcmp(Event->ShortText(),ShortText)))) Event->SetShortText(shText); |