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:
|
||||
from libsaria import plugin
|
||||
plugin.install(file)
|
||||
return
|
||||
try:
|
||||
libsaria.collection.lib_find_id(file)
|
||||
libsaria.music.load(file)
|
||||
id = libsaria.collection.lib_find_id(file)
|
||||
if id:
|
||||
libsaria.collection.lib_play_id(id)
|
||||
else:
|
||||
libsaria.music.load(file)
|
||||
except Exception,e:
|
||||
print e
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue