From 0d020360586ad2211c9fc69386f00a88775bcdaf Mon Sep 17 00:00:00 2001 From: Stephan Reichholf Date: Wed, 8 Jul 2009 17:04:13 +0000 Subject: [PATCH] #dirty backwards compatibility hack --- webinterface/src/WebChilds/FileStreamer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webinterface/src/WebChilds/FileStreamer.py b/webinterface/src/WebChilds/FileStreamer.py index 3f9c706..621a838 100644 --- a/webinterface/src/WebChilds/FileStreamer.py +++ b/webinterface/src/WebChilds/FileStreamer.py @@ -25,7 +25,11 @@ class FileStreamer(resource.Resource): if parts.has_key("file"): #filename = parts["file"].replace("%20"," ") filename = unquote_plus(parts["file"]) + path = "%s%s" %(dir, filename) + #dirty backwards compatibility hack + if not os_path.exists(path): + path = "/hdd/movie/%s" %filename if os_path.exists(path): s = stream.FileStream(open(path,"r")) -- 2.7.4