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:
parent
3e9b96bf46
commit
5833b1908c
|
@ -41,10 +41,11 @@ def loadfile(file):
|
||||||
|
|
||||||
def universal_open(file):
|
def universal_open(file):
|
||||||
global plugin
|
global plugin
|
||||||
|
file = file.replace("%20", " ")
|
||||||
|
file = file.replace("%22", "\"")
|
||||||
if path.is_dir(file):
|
if path.is_dir(file):
|
||||||
libsaria.collection.new_source(file)
|
libsaria.collection.new_source(file)
|
||||||
return
|
return
|
||||||
file = file.replace("%20", " ")
|
|
||||||
split = path.splitext(file)
|
split = path.splitext(file)
|
||||||
ext = split[1]
|
ext = split[1]
|
||||||
# Install and start a plugin
|
# Install and start a plugin
|
||||||
|
|
Loading…
Reference in New Issue