diff options
Diffstat (limited to 'recmanager.c')
-rw-r--r-- | recmanager.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/recmanager.c b/recmanager.c index e9501d1..dc199ab 100644 --- a/recmanager.c +++ b/recmanager.c @@ -44,7 +44,7 @@ bool cRecManager::RefreshRemoteTimers(void) { bool cRecManager::CheckEventForTimer(const cEvent *event) { bool hasTimer = false; - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { RemoteTimers_GetMatch_v1_0 rtMatch; rtMatch.event = event; pRemoteTimers->Service("RemoteTimers::GetMatch-v1.0", &rtMatch); @@ -66,7 +66,7 @@ bool cRecManager::CheckEventForTimer(const cEvent *event) { const cTimer *cRecManager::GetTimerForEvent(const cEvent *event) { const cTimer *timer = NULL; - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { RemoteTimers_GetMatch_v1_0 rtMatch; rtMatch.event = event; pRemoteTimers->Service("RemoteTimers::GetMatch-v1.0", &rtMatch); @@ -85,7 +85,7 @@ const cTimer *cRecManager::GetTimerForEvent(const cEvent *event) { cTimer *cRecManager::createTimer(const cEvent *event, std::string path) { cTimer *timer = NULL; - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { timer = createRemoteTimer(event, path); } else { timer = createLocalTimer(event, path); @@ -143,9 +143,9 @@ cTimer *cRecManager::createRemoteTimer(const cEvent *event, std::string path) { } void cRecManager::SetTimerPath(cTimer *timer, const cEvent *event, std::string path) { - if (tvguideConfig.instRecFolderMode == eFolderFixed) { + if (config.instRecFolderMode == eFolderFixed) { Epgsearch_services_v1_2 *epgSearch = new Epgsearch_services_v1_2; - std::string recDir = tvguideConfig.instRecFixedFolder; + std::string recDir = config.instRecFixedFolder; std::replace(recDir.begin(), recDir.end(), '/', '~'); if (strchr(recDir.c_str(), '%') != NULL) { if (epgSearchPlugin->Service("Epgsearch-services-v1.1", epgSearch)) { @@ -193,7 +193,7 @@ void cRecManager::DeleteTimer(int timerID) { void cRecManager::DeleteTimer(const cEvent *event) { if (!event) return; - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { DeleteRemoteTimer(event); } else { DeleteLocalTimer(event); @@ -287,7 +287,7 @@ void cRecManager::SaveTimer(const cTimer *t, cTimer newTimerSettings) { #if VDRVERSNUM < 20300 timer->SetEventFromSchedule(); #endif - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { RemoteTimers_Timer_v1_0 rt; rt.timer = timer; if (!pRemoteTimers->Service("RemoteTimers::ModTimer-v1.0", &rt)) @@ -337,7 +337,7 @@ void cRecManager::CreateSeriesTimer(cTimer *seriesTimer) { #if VDRVERSNUM < 20300 seriesTimer->SetEventFromSchedule(); #endif - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { RemoteTimers_Timer_v1_0 rt; rt.timer = seriesTimer; if (!pRemoteTimers->Service("RemoteTimers::NewTimer-v1.0", &rt)) @@ -717,8 +717,8 @@ const cEvent **cRecManager::LoadReruns(const cEvent *event, int &numResults) { if (epgSearchAvailable && !isempty(event->Title())) { Epgsearch_searchresults_v1_0 data; std::string strQuery = event->Title(); - if (tvguideConfig.useSubtitleRerun > 0) { - if (tvguideConfig.useSubtitleRerun == 2 || !isempty(event->ShortText())) + if (config.useSubtitleRerun > 0) { + if (config.useSubtitleRerun == 2 || !isempty(event->ShortText())) strQuery += "~"; if (!isempty(event->ShortText())) strQuery += event->ShortText(); @@ -789,9 +789,9 @@ const cEvent **cRecManager::WhatsOnNow(bool nowOrNext, int &numResults) { const cSchedules *schedules = cSchedules::Schedules(schedulesLock); #endif const cChannel *startChannel = NULL, *stopChannel = NULL; - if (tvguideConfig.favLimitChannels) { - startChannel = channels->GetByNumber(tvguideConfig.favStartChannel); - stopChannel = channels->GetByNumber(tvguideConfig.favStopChannel); + if (config.favLimitChannels) { + startChannel = channels->GetByNumber(config.favStartChannel); + stopChannel = channels->GetByNumber(config.favStopChannel); } if (!startChannel) startChannel = channels->First(); @@ -825,13 +825,13 @@ const cEvent **cRecManager::UserDefinedTime(int userTime, int &numResults) { std::vector<const cEvent*> tmpResults; int favTime = 0; if (userTime == 1) { - favTime = tvguideConfig.favTime1; + favTime = config.favTime1; } else if (userTime == 2) { - favTime = tvguideConfig.favTime2; + favTime = config.favTime2; } else if (userTime == 3) { - favTime = tvguideConfig.favTime3; + favTime = config.favTime3; } else if (userTime == 4) { - favTime = tvguideConfig.favTime4; + favTime = config.favTime4; } time_t now = time(0); @@ -857,9 +857,9 @@ const cEvent **cRecManager::UserDefinedTime(int userTime, int &numResults) { const cSchedules *schedules = cSchedules::Schedules(schedulesLock); #endif const cChannel *startChannel = NULL, *stopChannel = NULL; - if (tvguideConfig.favLimitChannels) { - startChannel = channels->GetByNumber(tvguideConfig.favStartChannel); - stopChannel = channels->GetByNumber(tvguideConfig.favStopChannel); + if (config.favLimitChannels) { + startChannel = channels->GetByNumber(config.favStartChannel); + stopChannel = channels->GetByNumber(config.favStopChannel); } if (!startChannel) startChannel = channels->First(); |