From a1340e06bae577dc710ff01b97e8abcf486a0676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 6 Nov 2011 19:12:12 +0200 Subject: Don't show aux infos XML if no search timer name was found. --- common.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'common.c') diff --git a/common.c b/common.c index 0b8cd27..8ca0315 100644 --- a/common.c +++ b/common.c @@ -196,18 +196,18 @@ std::string AddExtInfoToDescription(const char *Title, const char *ShortText, co std::string auxRaw(Aux); std::string auxEpgsearch = StripXmlTag(auxRaw, "epgsearch"); if (!auxEpgsearch.empty()) { - 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") << ": " << searchTimer; - desc << FitToWidth(buf, MAX_CHARS) << "\n"; + if (!searchTimer.empty()) { + if (!desc.str().empty()) + desc << "\n"; + desc << tr("AUXILIARY INFOS") << ":\n"; + std::stringstream buf; + buf << " - " << tr("Search timer") << ": " << searchTimer; + desc << FitToWidth(buf, MAX_CHARS) << "\n"; + } } } else { -- cgit v1.2.3