From 9bebbad537dfedc7d143b35d1d01dc9cc7b68b5f Mon Sep 17 00:00:00 2001 From: Jasmin Jessich Date: Sat, 17 Jun 2017 03:07:52 +0200 Subject: 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. --- timers.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'timers.cpp') 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() { -- cgit v1.2.3