[subtitle] add cd number
This commit is contained in:
parent
9a9d399503
commit
27ef9ae477
3 changed files with 10 additions and 2 deletions
|
|
@ -45,6 +45,7 @@ class SubtitleInfoFormatter(IFormatter):
|
|||
result += 'ID: %s\n' % obj.fullid
|
||||
result += 'URL: %s\n' % obj.url
|
||||
result += 'FPS: %s\n' % obj.fps
|
||||
result += 'NB CD: %s\n' % obj.nb_cd
|
||||
result += '\n%sDescription%s\n' % (self.BOLD, self.NC)
|
||||
result += obj.description
|
||||
return result
|
||||
|
|
@ -57,7 +58,7 @@ class SubtitleListFormatter(PrettyFormatter):
|
|||
return obj.name
|
||||
|
||||
def get_description(self, obj):
|
||||
return 'url : %s' % (obj.url)
|
||||
return '%s CD ; url : %s' % (obj.nb_cd,obj.url)
|
||||
|
||||
|
||||
class Suboob(ReplApplication):
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ class Subtitle(CapBaseObject):
|
|||
name = StringField('Name of subtitle')
|
||||
url = StringField('Direct url to subtitle file')
|
||||
fps = StringField('Framerate of corresponding video')
|
||||
description = StringField('Description of corresponding video')
|
||||
nb_cd = StringField('Number of cd')
|
||||
description=StringField('Description of corresponding video')
|
||||
|
||||
def __init__(self, id, name):
|
||||
CapBaseObject.__init__(self, id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue