diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-06 19:12:12 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-06 19:12:12 +0200 |
commit | a1340e06bae577dc710ff01b97e8abcf486a0676 (patch) | |
tree | 4a25573a4903f1eb5db55756b4b883de689be4cf /common.c | |
parent | a06e717e19f5748310bd7dc6d9d9803030c1e2bc (diff) | |
download | vdr-plugin-text2skin-a1340e06bae577dc710ff01b97e8abcf486a0676.tar.gz vdr-plugin-text2skin-a1340e06bae577dc710ff01b97e8abcf486a0676.tar.bz2 |
Don't show aux infos XML if no search timer name was found.
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 { |