From 8402010a319d9ba5f7d97320b1eddba7b1c568cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 28 May 2011 15:36:53 +0300 Subject: Update epgsearch recording search timer name parsing for epgsearch >= 0.9.21. --- common.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'common.c') diff --git a/common.c b/common.c index 5b62fc7..ea74be3 100644 --- a/common.c +++ b/common.c @@ -197,8 +197,14 @@ std::string AddExtInfoToDescription(const char *Title, const char *ShortText, co if (!desc.str().empty()) desc << "\n"; desc << tr("AUXILIARY INFOS") << ":\n"; + std::string searchTimer = StripXmlTag(auxEpgsearch, "searchtimer"); + if (searchTimer.empty()) + // epgsearch < 0.9.21? + searchTimer = StripXmlTag(auxEpgsearch, "Search timer"); + if (searchTimer.empty()) + searchTimer = auxEpgsearch; std::stringstream buf; - buf << " - " << tr("Search timer") << ": " << StripXmlTag(auxRaw, "Search timer"); + buf << " - " << tr("Search timer") << ": " << searchTimer; desc << FitToWidth(buf, MAX_CHARS) << "\n"; } } -- cgit v1.2.3