mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
Fix #2174 : Console: Unable to add torrent via URL
This commit is contained in:
parent
5cb85472c6
commit
b67bae31ba
1 changed files with 3 additions and 2 deletions
|
@ -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"(?<!\\) ", text)
|
||||
result = shlex.split(text)
|
||||
for i, s in enumerate(result):
|
||||
result[i] = s.replace(r'\ ', ' ')
|
||||
result = filter(lambda s: s != '', result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue