summaryrefslogtreecommitdiff
path: root/timers.cpp
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-17 03:07:52 +0200
committerJasmin Jessich <jasmin@anw.at>2017-06-17 22:35:15 +0200
commit9bebbad537dfedc7d143b35d1d01dc9cc7b68b5f (patch)
treec7322b06367fd9e0c05117896376b97fc212098d /timers.cpp
parent6bd777bdb4b9967e441301e109bfd42e114d7957 (diff)
downloadvdr-plugin-live-9bebbad537dfedc7d143b35d1d01dc9cc7b68b5f.tar.gz
vdr-plugin-live-9bebbad537dfedc7d143b35d1d01dc9cc7b68b5f.tar.bz2
Added column 'Searchtimer' to the timer views
- This implements the change request from ludi: http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p1293486-vdr-plugin-live-f%C3%BCr-vdr-2-3-x/#post1293486 He requested to see the name of the serach timer, which has created a timer.
Diffstat (limited to 'timers.cpp')
-rw-r--r--timers.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/timers.cpp b/timers.cpp
index 5335381..7f46cab 100644
--- a/timers.cpp
+++ b/timers.cpp
@@ -140,6 +140,22 @@ namespace vdrlive {
return info.str();
}
+ string SortedTimers::SearchTimerName(cTimer const& timer)
+ {
+ ostringstream info;
+ if (timer.Aux())
+ {
+ string epgsearchinfo = GetXMLValue(timer.Aux(), "epgsearch");
+ if (!epgsearchinfo.empty())
+ {
+ string searchtimer = GetXMLValue(epgsearchinfo, "searchtimer");
+ if (!searchtimer.empty())
+ info << searchtimer;
+ }
+ }
+ return info.str();
+ }
+
#if VDRVERSNUM >= 20301
bool SortedTimers::Modified()
{