ocarina/tests/treewalk.py
Bryan Schumaker 701306fef6 libsaria sources change
Change files to reflect the rename of libsaria.collection to
libsaria.sources
2010-12-03 08:30:12 -05:00

19 lines
330 B
Python

# Bryan Schumaker (8/17/2010)
from libsaria import sources
count = 0
list = []
append = list.append
for track in sources.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