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 --- HISTORY | 2 ++ imageloader.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/HISTORY b/HISTORY index ae00aa2..fd17ab9 100644 --- a/HISTORY +++ b/HISTORY @@ -326,3 +326,5 @@ Version 0.1.4 the channel - Cleaned up pixmaps in menuitems - Avoided font pixelation on default menu items +- Searching for epgimages named eventID.jpg and eventID_0.jpg in detailed + epg view 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