summaryrefslogtreecommitdiff
path: root/process.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-02-06 23:11:28 +0100
committerJochen Dolze <vdr@dolze.de>2009-02-06 23:11:28 +0100
commit7d0c10a7e07a075d464364df7c1e75c444ced316 (patch)
tree2e491e85649bb14f409cd8e7b894422ee4783120 /process.cpp
parent210b6ab3d8a5367e116afefe31cea1d83fa094b9 (diff)
downloadvdr-plugin-infosatepg-7d0c10a7e07a075d464364df7c1e75c444ced316.tar.gz
vdr-plugin-infosatepg-7d0c10a7e07a075d464364df7c1e75c444ced316.tar.bz2
Improved processing
Diffstat (limited to 'process.cpp')
-rw-r--r--process.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/process.cpp b/process.cpp
index bd7fe3c..8d9d6b3 100644
--- a/process.cpp
+++ b/process.cpp
@@ -207,10 +207,19 @@ cProcessInfosatepg::cProcessInfosatepg(int Mac, cGlobalInfosatepg *Global)
}
else
{
- esyslog("infosatepg: failed to get writelock while parsing %s",global->Infosatdata[Mac].GetFile());
+ esyslog("infosatepg: failed to get writelock while parsing %s",file);
}
fclose(f);
}
+ else
+ {
+ if (access(file,R_OK)==-1)
+ {
+ // cannot open file -> receive it again
+ esyslog("infosatepg: cannot access %s",file);
+ global->Infosatdata[Mac].ResetReceivedAll();
+ }
+ }
}
cEvent *cProcessInfosatepg::SearchEvent(cSchedule* Schedule, cInfosatevent *iEvent)
@@ -273,7 +282,7 @@ bool cProcessInfosatepg::AddInfosatEvent(cChannel *channel, cInfosatevent *iEven
}
else
{
- // we are beyond the last event, so just add (if we should)
+ // we are beyond the last event, just add (if we should)
if ((iEvent->Usage() & USE_APPEND)!=USE_APPEND) return true;
Event = new cEvent(iEvent->EventID());
if (!Event) return true;
@@ -431,6 +440,18 @@ bool cProcessInfosatepg::CheckAnnouncement(char *s,cInfosatevent *iEvent)
{
iEvent->SetAnnouncement("Tipp");
}
+ else if ((strlen(s)>=9) && (!strncmp(s,"TAGESTIPP",9)))
+ {
+ iEvent->SetAnnouncement("Tipp");
+ }
+ else if ((strlen(s)>=10) && (!strncmp(s,"Tagestipp!",10)))
+ {
+ iEvent->SetAnnouncement("Tipp");
+ }
+ else if ((strlen(s)>=15) && (!strncmp(s,"CARTOON NETWORK",15)))
+ {
+ // just ignore this
+ }
else ret=false;
return ret;
}