1 from Components.Converter.Converter import Converter
3 class RemainingToText(Converter, object):
4 def __init__(self, type):
5 Converter.__init__(self, type)
13 (duration, remaining) = self.source.time
14 if remaining is not None:
15 return "+%d min" % (remaining / 60)
17 return "%d min" % (duration / 60)
19 text = property(getText)