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:
parent
9684ecce40
commit
dc8a69bc0d
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user