ocarina/libsaria/sources/track.py
Bryan Schumaker c3dcb1c44c Comment out unused library attributes
I don't use these right now, but I may in the future.  For now, I will
just comment them out.
2010-12-04 13:39:33 -05:00

25 lines
599 B
Python

# Bryan Schumaker (11/09/2010)
import datetime
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
#self.rate = audio.bitrate
#self.channel = audio.channels
self.seconds = audio.length
#self.sample = audio.sampleRate
lenstr = "%s" % timedelta(seconds=self.seconds)
if lenstr[0] == "0" and lenstr[1] == ":":
self.lenstr = lenstr[2:]
else:
self.lenstr = lenstr
self.fs = None
self.tags = None