From: Jason T. <ta...@ur...> - 2006-04-29 22:16:52
|
In kaa.metadata: def correct_data(self): """ correct length to be an int """ MediaInfo.correct_data(self) if not self['length'] and len(self.video) and self.video[0]['length']: self['length'] = self.video[0]['length'] for container in [ self ] + self.video + self.audio: if container['length']: container['length'] = int(container['length']) How come? What's wrong with length being float? Jason. |