ocarina/tests/treewalk.py

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