fixed bug searching channel logos with channelid

This commit is contained in:
louis 2015-06-13 10:55:41 +02:00
parent 64b131e6b0
commit ffca82a883
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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) {