universal_open bug
After installing a plugin, universal_open() should return rather than continue on.
This commit is contained in:
parent
b7efda1d80
commit
3671b01e84
|
@ -48,9 +48,13 @@ def universal_open(file):
|
||||||
if plugin == None:
|
if plugin == None:
|
||||||
from libsaria import plugin
|
from libsaria import plugin
|
||||||
plugin.install(file)
|
plugin.install(file)
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
libsaria.collection.lib_find_id(file)
|
id = libsaria.collection.lib_find_id(file)
|
||||||
libsaria.music.load(file)
|
if id:
|
||||||
|
libsaria.collection.lib_play_id(id)
|
||||||
|
else:
|
||||||
|
libsaria.music.load(file)
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
print e
|
print e
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue