mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
pictureviewer: more string replacements for eventlogo in GetLogoName()
Origin commit data
------------------
Commit: 74833dfa47
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-18 (Tue, 18 Dec 2018)
Origin message was:
------------------
- pictureviewer: more string replacements for eventlogo in GetLogoName()
This commit is contained in:
@@ -568,6 +568,15 @@ bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &C
|
|||||||
|
|
||||||
std::transform(EventName.begin(), EventName.end(), EventName.begin(), ::tolower);
|
std::transform(EventName.begin(), EventName.end(), EventName.begin(), ::tolower);
|
||||||
EventName = str_replace(" ", "-", EventName);
|
EventName = str_replace(" ", "-", EventName);
|
||||||
|
EventName = str_replace(",", "-", EventName);
|
||||||
|
EventName = str_replace(";", "-", EventName);
|
||||||
|
EventName = str_replace(":", "-", EventName);
|
||||||
|
EventName = str_replace("+", "-", EventName);
|
||||||
|
EventName = str_replace("&", "-", EventName);
|
||||||
|
EventName = str_replace("ä", "ae", EventName);
|
||||||
|
EventName = str_replace("ö", "oe", EventName);
|
||||||
|
EventName = str_replace("ü", "ue", EventName);
|
||||||
|
EventName = str_replace("ß", "ss", EventName);
|
||||||
//printf("GetLogoName(): EventName \"%s\"\n", EventName.c_str());
|
//printf("GetLogoName(): EventName \"%s\"\n", EventName.c_str());
|
||||||
|
|
||||||
for (size_t i = 0; i < (sizeof(fileType) / sizeof(fileType[0])); i++)
|
for (size_t i = 0; i < (sizeof(fileType) / sizeof(fileType[0])); i++)
|
||||||
|
Reference in New Issue
Block a user