summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-06-13 10:55:41 +0200
committerlouis <louis.braun@gmx.de>2015-06-13 10:55:41 +0200
commitffca82a8831616e4f9abda8f2d491c26671c3b93 (patch)
tree25b9cf82980b218823af9e8e52ec2dc6816a783f /libcore
parent64b131e6b07c74f06655b2b00bba7496b847fd73 (diff)
downloadvdr-plugin-skindesigner-ffca82a8831616e4f9abda8f2d491c26671c3b93.tar.gz
vdr-plugin-skindesigner-ffca82a8831616e4f9abda8f2d491c26671c3b93.tar.bz2
fixed bug searching channel logos with channelid
Diffstat (limited to 'libcore')
-rw-r--r--libcore/imagecache.c5
1 files changed, 3 insertions, 2 deletions
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) {