mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
/control/timer?formalt=xml add some more repeat information
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@532 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1479,14 +1479,15 @@ void CControlAPI::SendTimersXML(CyhookHandler *hh)
|
||||
std::string zRep = NeutrinoAPI->timerEventRepeat2Str(timer->eventRepeat);
|
||||
std::string zRepCount;
|
||||
if (timer->eventRepeat == CTimerd::TIMERREPEAT_ONCE)
|
||||
zRepCount = "no";
|
||||
zRepCount = "-";
|
||||
else
|
||||
zRepCount = (timer->repeatCount == 0) ? "∞" : string_printf("%dx",timer->repeatCount);
|
||||
hh->printf("\t\t\t<repeat_count>%s</repeat_count>\n",zRepCount.c_str());
|
||||
hh->printf("\t\t\t<repeat>%d</repeat>\n",(int)timer->eventRepeat);
|
||||
hh->printf("\t\t\t<repeat_number>%d</repeat_number>\n",(int)timer->eventRepeat);
|
||||
hh->printf("\t\t\t<repeat>%s</repeat>\n",zRep.c_str());
|
||||
char weekdays[8]={0};
|
||||
NeutrinoAPI->Timerd->setWeekdaysToStr(timer->eventRepeat, weekdays);
|
||||
hh->printf("\t\t\t<repeat_text>%s</repeat_text>\n",weekdays);
|
||||
hh->printf("\t\t\t<repeat_weekdays>%s</repeat_weekdays>\n",weekdays);
|
||||
|
||||
// channel infos
|
||||
std::string channel_name = NeutrinoAPI->GetServiceName(timer->channel_id);
|
||||
|
Reference in New Issue
Block a user