summaryrefslogtreecommitdiff
path: root/tntconfig.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-09-17 22:23:40 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-09-17 22:23:40 +0000
commit721f6213cc1343e4ab613a89be55d37dd0780244 (patch)
treef778a1989c106845834ead6be9fa0e5e5e0e3e0d /tntconfig.cpp
parent5f3d9f1f80af84c71baed2fd9108aa1494ecaba5 (diff)
downloadvdr-plugin-live-721f6213cc1343e4ab613a89be55d37dd0780244.tar.gz
vdr-plugin-live-721f6213cc1343e4ab613a89be55d37dd0780244.tar.bz2
- Moved images from compiled in image dir to data dir 'img'.
- Fixed MapUrl entries to the new image location - Adapted some pages for the new image locations. - Added a preload functionalty to fill file cache at plugin startup.
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r--tntconfig.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/tntconfig.cpp b/tntconfig.cpp
index 41c55a2..704ae6f 100644
--- a/tntconfig.cpp
+++ b/tntconfig.cpp
@@ -71,11 +71,11 @@ void TntConfig::WriteConfig()
// rule where a image is found, terminates the search.
// 1. /themes/<theme>/img/<imgname>.<ext>
// 2. /img/<imgname>.<ext>
- // 3. <imgname>.<ext> (builtin images)
+ // deprecated: 3. <imgname>.<ext> (builtin images)
// inserted by 'tadi' -- verified with above, but not counterchecked yet!
file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ " << configDir << "/themes/$1/img/$2.$3 image/$3" << endl;
file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ " << configDir << "/img/$2.$3 image/$3" << endl;
- file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl;
+ // deprecated: file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl;
// Epg images
string const epgImgPath(LiveSetup().GetEpgImageDir());
@@ -93,11 +93,17 @@ void TntConfig::WriteConfig()
// inserted by 'tadi' -- verified with above, but not counterchecked yet!
file << "MapUrl ^/js(/[^.]*)([^/]*\\.js) content@ " << configDir << "/js$1$2 text/javascript" << endl;
- // these map to 'css/basename(uri)'
+ // map to 'css/basename(uri)'
// inserted by 'tadi' -- verified with above, but not counterchecked yet!
file << "MapUrl ^/css.*/(.+) content@ " << configDir << "/css/$1 text/css" << endl;
+
+ // map to 'img/basename(uri)'
+ // inserted by 'tadi' -- verified with above, but not counterchecked yet!
file << "MapUrl ^/img.*/(.+)\\.([^.]+) content@ " << configDir << "/img/$1.$2 image/$2" << endl;
+ // Map favicon.ico into img directory
+ file << "MapUrl ^/favicon.ico$ content@ " << configDir << "/img/favicon.ico image/x-icon" << endl;
+
// insecure by default: DO NOT UNKOMMENT!!!
// file << "MapUrl /([^/]+/.+) content@ $1" << endl;