aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-01-19 22:49:16 +0100
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-01-19 22:49:16 +0100
commit7633731ba2d09e0595906dbdc144251988aa84f7 (patch)
tree3bee4c0806219bcb762dbcd4eec52c2547023590 /src
parent89be5d3882d3849809a99693de4da167a638ec01 (diff)
Fix argument splitting.
Diffstat (limited to 'src')
-rw-r--r--src/livestreamer/utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/livestreamer/utils.py b/src/livestreamer/utils.py
index 7eaec95..2b4214d 100644
--- a/src/livestreamer/utils.py
+++ b/src/livestreamer/utils.py
@@ -30,8 +30,10 @@ class CommandLine(object):
class ArgumentParser(argparse.ArgumentParser):
def convert_arg_line_to_args(self, line):
- arg = line.split("=")
- yield "--%s=%s" % (arg[0].strip(), arg[1].strip())
+ split = line.find("=")
+ key = line[:split].strip()
+ val = line[split+1:].strip()
+ yield "--%s=%s" % (key, val)
def swfverify(url):
fd = urllib.urlopen(url)