mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bug searching channel logos with channelid
This commit is contained in:
parent
64b131e6b0
commit
ffca82a883
1
HISTORY
1
HISTORY
@ -366,3 +366,4 @@ Version 0.5.2
|
|||||||
- added recording shorttext, description and scraper poster tokens
|
- added recording shorttext, description and scraper poster tokens
|
||||||
to displaymenurecordings listelement
|
to displaymenurecordings listelement
|
||||||
- allow currentelements to use conditions
|
- allow currentelements to use conditions
|
||||||
|
- fixed bug searching channel logos with channelid
|
||||||
|
@ -146,11 +146,12 @@ bool cImageCache::LogoExists(string channelID) {
|
|||||||
if (!channel)
|
if (!channel)
|
||||||
return false;
|
return false;
|
||||||
string logoLower = StrToLowerCase(channel->Name());
|
string logoLower = StrToLowerCase(channel->Name());
|
||||||
|
string channelIDLower = StrToLowerCase(channelID.c_str());
|
||||||
|
|
||||||
return (FileExists(logoPath.c_str(), logoLower, "svg") ||
|
return (FileExists(logoPath.c_str(), logoLower, "svg") ||
|
||||||
FileExists(logoPath.c_str(), logoLower, "png") ||
|
FileExists(logoPath.c_str(), logoLower, "png") ||
|
||||||
FileExists(logoPath.c_str(), channelID, "svg") ||
|
FileExists(logoPath.c_str(), channelIDLower, "svg") ||
|
||||||
FileExists(logoPath.c_str(), channelID, "png"));
|
FileExists(logoPath.c_str(), channelIDLower, "png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cImageCache::SeparatorLogoExists(string name) {
|
bool cImageCache::SeparatorLogoExists(string name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user