From 18518f3cf10874cc4ce5c2f58f8aec6b645b40c8 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 1 Nov 2013 14:08:59 +0100 Subject: Searching for epgimages named eventID.jpg and eventID_0.jpg in detailed epg view --- imageloader.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'imageloader.c') 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) { -- cgit v1.2.3