summaryrefslogtreecommitdiff
path: root/epghandler.c
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2014-04-16 16:23:38 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2014-04-16 16:23:38 (GMT)
commita65e2c09448b24c8e4d6c0e13fd9775ecdca3488 (patch)
tree90988181cad96406fc4d0fb0ca64a14bb9cbd9a9 /epghandler.c
parent7342e5ac9ca1512c2a89aeffe897eefe65e10c58 (diff)
downloadvdr-plugin-eepg-a65e2c09448b24c8e4d6c0e13fd9775ecdca3488.tar.gz
vdr-plugin-eepg-a65e2c09448b24c8e4d6c0e13fd9775ecdca3488.tar.bz2
remove commented lines
Diffstat (limited to 'epghandler.c')
-rw-r--r--epghandler.c17
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);