mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed detection of recording timers
This commit is contained in:
parent
7994fc200a
commit
8e98ebcd6b
@ -2,6 +2,7 @@
|
|||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#include "../extensions/helpers.h"
|
#include "../extensions/helpers.h"
|
||||||
#include "../services/scraper2vdr.h"
|
#include "../services/scraper2vdr.h"
|
||||||
|
#include "../services/epgtimer.h"
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* cVeDcChannelInfo
|
* cVeDcChannelInfo
|
||||||
@ -323,6 +324,10 @@ void cVeDcStatusInfo::Set(const cChannel *c) {
|
|||||||
if (const cTimer *Timer = globalTimers->At(i))
|
if (const cTimer *Timer = globalTimers->At(i))
|
||||||
if (Timer->Recording())
|
if (Timer->Recording())
|
||||||
isRecording = true;
|
isRecording = true;
|
||||||
|
else if (cEpgTimer_Interface_V1* epgTimer = dynamic_cast<cEpgTimer_Interface_V1*>((cTimer*)Timer)) {
|
||||||
|
if (epgTimer->State() == 'R')
|
||||||
|
isRecording = true;
|
||||||
|
}
|
||||||
|
|
||||||
tokenContainer->AddIntToken((int)eDCStatusInfoIT::isRadio, isRadio);
|
tokenContainer->AddIntToken((int)eDCStatusInfoIT::isRadio, isRadio);
|
||||||
tokenContainer->AddIntToken((int)eDCStatusInfoIT::hasVT, hasVT);
|
tokenContainer->AddIntToken((int)eDCStatusInfoIT::hasVT, hasVT);
|
||||||
|
Loading…
Reference in New Issue
Block a user