Libsaria events now support starting specific callback functions in a background thread. This replaces starting a specific event in the background. I have a library tab that is added to the main window through use of the ocarina.add_tab function. I have new tests for walking the tree and running multiple threads with locks.
19 lines
336 B
Python
19 lines
336 B
Python
# Bryan Schumaker (8/17/2010)
|
|
|
|
from libsaria import collection
|
|
|
|
count = 0
|
|
list = []
|
|
append = list.append
|
|
|
|
for track in collection.walk_library():
|
|
get = track.__getitem__
|
|
append([get("id"), get("title"), get("length"),
|
|
get("artist"),
|
|
get("album"),
|
|
get("year"),
|
|
get("playcount")])
|
|
count += 1
|
|
|
|
print "Counted: %s files" % count
|