]> code.delx.au - youtube-cgi/blobdiff - youtube.cgi
more convenient startup of node.js
[youtube-cgi] / youtube.cgi
index 263259cd5ab1c71aea18c449d977a330660755fb..45c8574965dd00947d769c381400fdd14bc854b9 100755 (executable)
@@ -153,7 +153,9 @@ def decode_signature(js_url, s):
        func_block = script[p1:p2+1]
 
        p = subprocess.Popen(
-               ["js"],
+               "js",
+               shell=True,
+               close_fds=True,
                stdin=subprocess.PIPE,
                stdout=subprocess.PIPE
        )