Skip to content

Commit d23a8ce

Browse files
author
hannemann
committed
Merge pull request #12 from Zabrimus/upstream
Upstream
2 parents 8d73600 + bdf4bde commit d23a8ce

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

info.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,12 @@ SerDevice InfoResponder::getDeviceSerializeInfo(int index) {
248248
bool live = false;
249249

250250
if (dev->ProvidesSource(cSource::stCable) || dev->ProvidesSource(cSource::stSat) || dev->ProvidesSource(cSource::stTerr) || dev->ProvidesSource(cSource::stAtsc)) {
251-
channelName = (string)chan->Name();
252-
channelId = (string)chan->GetChannelID().ToString();
253-
channelNr = chan->Number();
254-
live = channelNr == StatusMonitor::get()->getChannel();
251+
if (chan) {
252+
channelName = (string)chan->Name();
253+
channelId = (string)chan->GetChannelID().ToString();
254+
channelNr = chan->Number();
255+
live = channelNr == StatusMonitor::get()->getChannel();
256+
}
255257

256258
hasCi = dev->HasCi();
257259
signalStrength = dev->SignalStrength();

timers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ void TimersResponder::createOrUpdateTimer(ostream& out, cxxtools::http::Request&
119119
if ( !v.IsWeekdaysValid(weekdays) ) { weekdays = v.ConvertWeekdays(timer_orig->WeekDays()); }
120120
if ( !v.IsDayValid(day) ) { day = v.ConvertDay(timer_orig->Day()); }
121121
if ( chan == NULL ) { chan = (cChannel*)timer_orig->Channel(); }
122+
if ( aux == "" ) { aux = v.ConvertAux(timer_orig->Aux()); }
122123
}
123124
}
124125

0 commit comments

Comments
 (0)