summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-22 10:28:47 +0100
committerlouis <louis.braun@gmx.de>2013-12-22 10:28:47 +0100
commit5bf7c3a84e683a8226256a41292566789fd29521 (patch)
treea6813a55a8aba6b7693457b81146bd13b0d5f142
parent0da7aeb18e0368d7c38da221573c21b35fb60169 (diff)
downloadvdr-plugin-tvguide-5bf7c3a84e683a8226256a41292566789fd29521.tar.gz
vdr-plugin-tvguide-5bf7c3a84e683a8226256a41292566789fd29521.tar.bz2
search for <event_id>_0.jpg beside <event_id>.jpg as epg image
-rw-r--r--HISTORY1
-rw-r--r--imageloader.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 9e1510e..3933e3a 100644
--- a/HISTORY
+++ b/HISTORY
@@ -79,3 +79,4 @@ Version 1.1.0
-i icons directory
-l logo directory
- changed detailed epg view using full screen, some further optimisations
+- search for <event_id>_0.jpg beside <event_id>.jpg as epg image
diff --git a/imageloader.c b/imageloader.c
index ac3dbf8..2faeb91 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -41,7 +41,11 @@ bool cImageLoader::LoadLogo(const cChannel *channel, int width, int height) {
bool cImageLoader::LoadEPGImage(int eventID, int width, int height) {
if ((width == 0)||(height==0))
return false;
- if (!LoadImage(*cString::sprintf("%d", eventID), *tvguideConfig.epgImagePath, "jpg"))
+ bool success = false;
+ success = LoadImage(*cString::sprintf("%d", eventID), *tvguideConfig.epgImagePath, "jpg");
+ if (!success)
+ success = LoadImage(*cString::sprintf("%d_0", eventID), *tvguideConfig.epgImagePath, "jpg");
+ if (!success)
return false;
buffer.sample( Geometry(width, height));
return true;