simplify search command code
This commit is contained in:
parent
9d7d8692ba
commit
9fe8053052
2 changed files with 5 additions and 9 deletions
|
|
@ -39,6 +39,9 @@ class Video(object):
|
|||
self.preview_url = preview_url
|
||||
self.nsfw = nsfw
|
||||
|
||||
@property
|
||||
def formatted_duration(self):
|
||||
return '%d:%02d:%02d' % (self.duration / 3600, (self.duration % 3600 / 60), self.duration % 60)
|
||||
class ICapVideoProvider(ICap):
|
||||
def iter_page_urls(self, mozaic_url):
|
||||
raise NotImplementedError()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue