From b2faa95c1aa8b0d03b40339f942ed7a06d57a292 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 15 Sep 2020 08:19:03 +0200 Subject: [PATCH] add some special character conversion Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a682d4b74d2d2faa5cbd95e34eba9086c275ba21 Author: TangoCash Date: 2020-09-15 (Tue, 15 Sep 2020) --- src/driver/pictureviewer/pictureviewer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 93619822d..d696846b7 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -615,6 +615,16 @@ bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &C SpecialChannelName = str_replace("ΓΌ", "u", SpecialChannelName); SpecialChannelName = str_replace("+", "___plus___", SpecialChannelName); SpecialChannelName = str_replace("&", "___and___", SpecialChannelName); + // + SpecialChannelName = str_replace(",", "-", SpecialChannelName); + SpecialChannelName = str_replace(";", "-", SpecialChannelName); + SpecialChannelName = str_replace(":", "-", SpecialChannelName); + SpecialChannelName = str_replace("*", "-", SpecialChannelName); + SpecialChannelName = str_replace("'", "-", SpecialChannelName); + SpecialChannelName = str_replace("?", "-", SpecialChannelName); + SpecialChannelName = str_replace("|", "-", SpecialChannelName); + SpecialChannelName = str_replace("/", "-", SpecialChannelName); + SpecialChannelName = str_replace("\\", "-", SpecialChannelName); // create channel id as string char strChnId[16];