summaryrefslogtreecommitdiff
path: root/pages/content.ecpp
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-07-20 16:06:51 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-07-20 16:06:51 +0000
commit4fb0ce9c0662a7b7c3bce712577743e2a56444c0 (patch)
tree8143d3de6e9d966fa33269ea0c9d3f112468c82f /pages/content.ecpp
parentb40d2c550444c61c25a1c2ec2dbd472dd11d2b62 (diff)
downloadvdr-plugin-live-4fb0ce9c0662a7b7c3bce712577743e2a56444c0.tar.gz
vdr-plugin-live-4fb0ce9c0662a7b7c3bce712577743e2a56444c0.tar.bz2
- Added support for EPG images: Specify the directory with your
EPG images via the new commandline option '-e <dir>' or '--epgimages=<dir> like -P'live -e /video/epgimages'
Diffstat (limited to 'pages/content.ecpp')
-rw-r--r--pages/content.ecpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/pages/content.ecpp b/pages/content.ecpp
index 1438790..f95dd4c 100644
--- a/pages/content.ecpp
+++ b/pages/content.ecpp
@@ -26,8 +26,15 @@ reply.setContentType(mime);
// FileCache::ptr_type f = LiveFileCache().get("/tmp/live/" + request.getPathInfo());
string path(request.getPathInfo());
-FileCache::ptr_type f = LiveFileCache().get(Plugin::GetConfigDirectory() + "/" + path);
+FileCache::ptr_type f;
+
+if (path.find(LiveSetup().GetEpgImageDir()) != 0)
+ f = LiveFileCache().get(Plugin::GetConfigDirectory() + "/" + path);
+else
+ f = LiveFileCache().get(path);
+
if (f.get() == 0) {
+cout << "declined" << endl;
return DECLINED;
}
string ctime = tnt::HttpMessage::htdate(f->ctime());