universal_open() needs escape character replacement

%20 and $22 should be replaced with " " and "\"" before using the path
to create a library.
This commit is contained in:
Bryan Schumaker 2010-11-09 13:55:14 -05:00
parent 3e9b96bf46
commit 5833b1908c
1 changed files with 2 additions and 1 deletions

View File

@ -41,10 +41,11 @@ def loadfile(file):
def universal_open(file):
global plugin
file = file.replace("%20", " ")
file = file.replace("%22", "\"")
if path.is_dir(file):
libsaria.collection.new_source(file)
return
file = file.replace("%20", " ")
split = path.splitext(file)
ext = split[1]
# Install and start a plugin