# Bryan Schumaker (11/09/2010)

import datetime
timedelta = datetime.timedelta

class Track:
	def __init__(self, tags, audio):
		self.like    = None
		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
