diff options
author | horchi <vdr@jwendel.de> | 2018-02-17 13:30:48 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-17 13:30:48 +0100 |
commit | 4b3df4033c73b48e764d1f893f29a9d6b8883bdc (patch) | |
tree | 1831d6b191fd7e0494ee2d5d5057d09d45848102 /epg2vdr.c | |
parent | 0bdc56517a2e9512ef0f5156b1ffedc7ab94b3d7 (diff) | |
download | vdr-plugin-epg2vdr-4b3df4033c73b48e764d1f893f29a9d6b8883bdc.tar.gz vdr-plugin-epg2vdr-4b3df4033c73b48e764d1f893f29a9d6b8883bdc.tar.bz2 |
2018-02-17 version 1.1.85 (horchi)\n - added: Timer type and location to timer detail service\n\n1.1.85
Diffstat (limited to 'epg2vdr.c')
-rw-r--r-- | epg2vdr.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -871,7 +871,7 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) return true; } - if (strcmp(id, EPG2VDR_TIMER_SERVICE) == 0 || strcmp(id, EPG2VDR_REC_DETAIL_SERVICE) == 0 || strcmp(id, EPG2VDR_HAS_TIMER) == 0) + if (strcmp(id, EPG2VDR_TIMER_SERVICE) == 0 || strcmp(id, EPG2VDR_REC_DETAIL_SERVICE) == 0 || strcmp(id, EPG2VDR_TIMER_DETAIL_SERVICE) == 0) { // Services with direct db access @@ -886,9 +886,9 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) if (ts) return timerService(ts); } - if (strcmp(id, EPG2VDR_HAS_TIMER) == 0) + if (strcmp(id, EPG2VDR_TIMER_DETAIL_SERVICE) == 0) { - cHas_Timer_V1* d = (cHas_Timer_V1*)data; + cTimer_Detail_V1* d = (cTimer_Detail_V1*)data; if (d) return hasTimerService(d); @@ -912,7 +912,7 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) // Has Timer Service //*************************************************************************** -int cPluginEPG2VDR::hasTimerService(cHas_Timer_V1* d) +int cPluginEPG2VDR::hasTimerService(cTimer_Detail_V1* d) { cMutexLock lock(&mutexTimerService); @@ -920,12 +920,17 @@ int cPluginEPG2VDR::hasTimerService(cHas_Timer_V1* d) vdrDb->clear(); d->hastimer = no; + d->local = yes; + d->type = ttRecord; for (int f = selectTimers->find(); f && connection->check() == success; f = selectTimers->fetch()) { if (timerDb->hasValue("EVENTID", d->eventid)) { d->hastimer = yes; + d->local = timerDb->hasValue("VDRUUID", Epg2VdrConfig.uuid); + d->type = timerDb->getValue("TYPE")->getCharValue(); + break; } } |