From ffca82a8831616e4f9abda8f2d491c26671c3b93 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 13 Jun 2015 10:55:41 +0200 Subject: fixed bug searching channel logos with channelid --- libcore/imagecache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libcore/imagecache.c') 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) { -- cgit v1.2.3