2009-02-24, 04:00
rwparris2 Wrote:I'll test that string when I get home.
Those options work on Mac/Linux too I believe. I just used the long options because they are more readable and I didn't know they weren't supported on Windows.
Here is a patch to use the short options:
Code:
diff --git a/resources/lib/decswf.py b/resources/lib/decswf.py
index eec6eff..cbcb56a 100644
--- a/resources/lib/decswf.py
+++ b/resources/lib/decswf.py
@@ -10,7 +10,7 @@ PID_RE = re.compile("hulupid=(.*)")
def hulu_decrypt(pid):
gnash = common.settings['gnash_path']
swf = os.path.join(os.path.dirname(os.path.realpath(__file__)), "DecryptPid.swf")
- args = [gnash, "--render-mode", "0", "--once", "--verbose", "--param", "FlashVars=pid=%s" % pid, swf]
+ args = [gnash, "-r", "0", "-1", "-v", "-P", "FlashVars=pid=%s" % pid, swf]
output = subprocess.Popen(args, executable=gnash, bufsize=1, universal_newlines=True, stdout=subprocess.PIPE).communicate()[0]
match = PID_RE.search(output)
if match: