summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-01 14:08:59 +0100
committerlouis <louis.braun@gmx.de>2013-11-01 14:08:59 +0100
commit18518f3cf10874cc4ce5c2f58f8aec6b645b40c8 (patch)
tree06683c596512cee290d9b1adad61e60b3c8da4c3 /imageloader.c
parent173a2a7d868a4ce5d2355e30ffe7bd6a2e486007 (diff)
downloadskin-nopacity-18518f3cf10874cc4ce5c2f58f8aec6b645b40c8.tar.gz
skin-nopacity-18518f3cf10874cc4ce5c2f58f8aec6b645b40c8.tar.bz2
Searching for epgimages named eventID.jpg and eventID_0.jpg in detailed epg view
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/imageloader.c b/imageloader.c
index 5a9d2c0..437030e 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -55,6 +55,12 @@ bool cImageLoader::LoadEPGImage(int eventID) {
if (!success) {
success = LoadImage(*cString::sprintf("%d", eventID), *config.epgImagePathDefault, "jpg");
}
+ if (!success && config.epgImagePathSet) {
+ success = LoadImage(*cString::sprintf("%d_0", eventID), *config.epgImagePath, "jpg");
+ }
+ if (!success) {
+ success = LoadImage(*cString::sprintf("%d_0", eventID), *config.epgImagePathDefault, "jpg");
+ }
if (!success)
return false;
if (height != 0 || width != 0) {