summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--libcore/imagecache.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 118914e..7f3d348 100644
--- a/HISTORY
+++ b/HISTORY
@@ -366,3 +366,4 @@ Version 0.5.2
- added recording shorttext, description and scraper poster tokens
to displaymenurecordings listelement
- allow currentelements to use conditions
+- fixed bug searching channel logos with channelid
diff --git a/libcore/imagecache.c b/libcore/imagecache.c
index f9878fe..1bde47a 100644
--- a/libcore/imagecache.c
+++ b/libcore/imagecache.c
@@ -146,11 +146,12 @@ bool cImageCache::LogoExists(string channelID) {
if (!channel)
return false;
string logoLower = StrToLowerCase(channel->Name());
+ string channelIDLower = StrToLowerCase(channelID.c_str());
return (FileExists(logoPath.c_str(), logoLower, "svg") ||
FileExists(logoPath.c_str(), logoLower, "png") ||
- FileExists(logoPath.c_str(), channelID, "svg") ||
- FileExists(logoPath.c_str(), channelID, "png"));
+ FileExists(logoPath.c_str(), channelIDLower, "svg") ||
+ FileExists(logoPath.c_str(), channelIDLower, "png"));
}
bool cImageCache::SeparatorLogoExists(string name) {