Add track fields

Tracks need a playcount and a score in addition to all other fields.
This commit is contained in:
Bryan Schumaker 2010-11-10 08:21:03 -05:00
parent afd145efd7
commit 52da8984c3
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ timedelta = datetime.timedelta
class Track:
def __init__(self, tags, audio):
self.score = 0
self.count = 0
self.genre = tags.genre or u"Unknown Genre"
self.track = tags.track
self.year = tags.year