[subtitle] FPS field removed

This commit is contained in:
Julien Veyssier 2013-02-27 17:45:57 +01:00
commit d54adca470
5 changed files with 2 additions and 12 deletions

View file

@ -38,13 +38,12 @@ def sizeof_fmt(num):
class SubtitleInfoFormatter(IFormatter):
MANDATORY_FIELDS = ('id', 'name', 'url', 'fps', 'description')
MANDATORY_FIELDS = ('id', 'name', 'url', 'description')
def format_obj(self, obj, alias):
result = u'%s%s%s\n' % (self.BOLD, obj.name, self.NC)
result += 'ID: %s\n' % obj.fullid
result += 'URL: %s\n' % obj.url
result += 'FPS: %s\n' % obj.fps
result += 'LANG: %s\n' % obj.language
result += 'NB CD: %s\n' % obj.nb_cd
result += '\n%sDescription%s\n' % (self.BOLD, self.NC)

View file

@ -40,8 +40,7 @@ class Subtitle(CapBaseObject):
"""
name = StringField('Name of subtitle')
url = StringField('Direct url to subtitle file')
fps = FloatField('Framerate of corresponding video')
nb_cd = IntField('Number of cd')
nb_cd = IntField('Number of cd or files')
language = StringField('Language of the subtitle')
description=StringField('Description of corresponding video')