From b67bae31bab50c7a5b9b9312500d8dff819e8fa1 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 6 Nov 2012 21:27:02 +0000 Subject: [PATCH] Fix #2174 : Console: Unable to add torrent via URL --- deluge/ui/console/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 55a5c689d..ea7d43adf 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -40,6 +40,7 @@ import logging import optparse import re import locale +import shlex from twisted.internet import defer, reactor @@ -266,7 +267,7 @@ class BaseCommand(object): def split(self, text): if deluge.common.windows_check(): text = text.replace('\\', '\\\\') - result = re.split(r"(?