simplify search command code

This commit is contained in:
Christophe Benz 2010-04-26 19:21:58 +02:00
commit 9fe8053052
2 changed files with 5 additions and 9 deletions

View file

@ -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()