summaryrefslogtreecommitdiff
path: root/httpresource.c
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-07-25 20:37:31 +0200
committerthlo <smarttv640@gmail.com>2013-07-25 20:37:31 +0200
commitfc96324fc266bef30027332d47f34dd09a2f3b66 (patch)
treefa0c0a115b560eabc7d1bde50432261b3bc1717a /httpresource.c
parent66d5e7f95f2f1c3c51bd73f86466a8bd2f16fbc7 (diff)
downloadvdr-plugin-smarttvweb-fc96324fc266bef30027332d47f34dd09a2f3b66.tar.gz
vdr-plugin-smarttvweb-fc96324fc266bef30027332d47f34dd09a2f3b66.tar.bz2
Allow HTTP access to Video Dir. LocalTime fix. Adding Timers. Cleanups. Update is isServing to prevent shutdown.
Diffstat (limited to 'httpresource.c')
-rwxr-xr-xhttpresource.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/httpresource.c b/httpresource.c
index e29358b..545e7ba 100755
--- a/httpresource.c
+++ b/httpresource.c
@@ -455,6 +455,12 @@ int cHttpResource::processRequest() {
ok_to_serve = true;
}
+ if (mPath.compare(0, strlen(VideoDirectory), VideoDirectory) == 0) {
+ *(mLog->log())<< DEBUGPREFIX
+ << " Found video dir request. serving " << mPath << endl;
+ ok_to_serve = true;
+ }
+
if (stat(mPath.c_str(), &statbuf) < 0) {
// checking, whether the file or directory exists
*(mLog->log())<< DEBUGPREFIX