ocarina: Refresh library after loading

To show changes.  I also use the v1.3 decoder function to decode
exported libraries.
This commit is contained in:
Bryan Schumaker 2011-04-24 19:08:09 -04:00
parent 9684ecce40
commit dc8a69bc0d
2 changed files with 7 additions and 0 deletions

View File

@ -207,3 +207,5 @@ def import_library(child):
decode_v1_2(child)
elif version == "1.3":
decode_v1_3(child)
elif version == "4.4": # No library format change from 1.3
decode_v1_3(child)

View File

@ -5,6 +5,7 @@ import queue
from ocarina import body
from ocarina.body import footer
import playlist
import library
invite = libsaria.event.invite
@ -40,3 +41,7 @@ invite("POSTGETART", on_getart)
def on_load_playlist(*args):
playlist.refresh()
invite("POSTLOADPLAYLIST", on_load_playlist)
def on_load_library(*args):
library.refresh()
invite("POSTNEWSOURCE", on_load_library)