[subtitle] FPS field removed
This commit is contained in:
parent
2c9d7ab540
commit
d54adca470
5 changed files with 2 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue