diff options
author | Jasmin Jessich <jasmin@anw.at> | 2017-06-17 03:07:52 +0200 |
---|---|---|
committer | Jasmin Jessich <jasmin@anw.at> | 2017-06-17 22:35:15 +0200 |
commit | 9bebbad537dfedc7d143b35d1d01dc9cc7b68b5f (patch) | |
tree | c7322b06367fd9e0c05117896376b97fc212098d /timers.cpp | |
parent | 6bd777bdb4b9967e441301e109bfd42e114d7957 (diff) | |
download | vdr-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.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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() { |