From 5c8e368d21c199fab8e21401ab5339105bd51e04 Mon Sep 17 00:00:00 2001 From: yjogol Date: Wed, 31 Mar 2010 15:19:32 +0000 Subject: [PATCH] /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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/777605caa1e6c924c9ba46e3130b511729ad21af Author: yjogol Date: 2010-03-31 (Wed, 31 Mar 2010) ------------------ This commit was generated by Migit --- src/nhttpd/tuxboxapi/coolstream/controlapi.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index 01ac27fd1..38595342b 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -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%s\n",zRepCount.c_str()); - hh->printf("\t\t\t%d\n",(int)timer->eventRepeat); + hh->printf("\t\t\t%d\n",(int)timer->eventRepeat); + hh->printf("\t\t\t%s\n",zRep.c_str()); char weekdays[8]={0}; NeutrinoAPI->Timerd->setWeekdaysToStr(timer->eventRepeat, weekdays); - hh->printf("\t\t\t%s\n",weekdays); + hh->printf("\t\t\t%s\n",weekdays); // channel infos std::string channel_name = NeutrinoAPI->GetServiceName(timer->channel_id);