#dirty backwards compatibility hack
authorStephan Reichholf <sreichholf@users.schwerkraft.elitedvb.net>
Wed, 8 Jul 2009 17:04:13 +0000 (17:04 +0000)
committerStephan Reichholf <sreichholf@users.schwerkraft.elitedvb.net>
Wed, 8 Jul 2009 17:04:13 +0000 (17:04 +0000)
webinterface/src/WebChilds/FileStreamer.py

index 3f9c706..621a838 100644 (file)
@@ -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"))