示例#1
0
 def __init__(self, raw, db=None):
     DictData.__init__(self, raw)
     self._db = db
     self.AudioProps = ParseEnum(self, 'audio_props', AUDIO_PROPS, False)
     self.VideoProps = ParseEnum(self, 'video_props', VIDEO_PROPS, False)
     self.SubtitleType = ParseEnum(self, 'subtitle_type', SUBTITLE_TYPES,
                                   False)
示例#2
0
 def __init__(self, raw, db=None):
     DictData.__init__(self, raw)
     self._db = db
     self.AudioProps = ParseEnum(self, 'audio_props', AUDIO_PROPS, False)
     self.VideoProps = ParseEnum(self, 'video_props', VIDEO_PROPS, False)
     self.SubtitleType = ParseEnum(self, 'subtitle_type', SUBTITLE_TYPES, False)
示例#3
0
 def __init__(self, raw):
     DictData.__init__(self, raw)
     self.freespace = self.totalspace - self.usedspace
示例#4
0
 def __init__(self, raw):
     DictData.__init__(self, raw)
     self.freespace = self.totalspace - self.usedspace