TYPE_REMAINING = 2,
TYPE_GAUGE = 3
- def __init__(self, type, *args, **kwargs):
+ def __init__(self, type):
Poll.__init__(self)
- Converter.__init__(self)
+ Converter.__init__(self, type)
if type == "Length":
self.type = self.TYPE_LENGTH
elif type == "Position":
pos = seek.getPlayPosition()
if pos[0]:
return 0
- return pos[1] / 90000
+ return pos[1]
def getLength(self):
seek = self.getSeek()
length = seek.getLength()
if length[0]:
return 0
- return length[1] / 90000
+ return length[1]
def getCutlist(self):
service = self.source.service
l = self.position
elif self.type == self.TYPE_REMAINING:
l = self.length - self.position
+
+ l /= 90000
return "%d:%02d" % (l/60, l%60)
position = property(getPosition)