new preview_url attribute

This commit is contained in:
Romain Bignon 2010-04-17 11:20:33 +02:00
commit 3d02ff23a0

View file

@ -25,7 +25,7 @@ __all__ = ['ICapVideoProvider', 'Video']
class Video(object):
def __init__(self, _id, title=u'', url=u'', author=u'', duration=0, date=None, rating=0, rating_max=0):
def __init__(self, _id, title=u'', url=u'', author=u'', duration=0, date=None, rating=0, rating_max=0, preview_url=None):
self.id = _id
self.title = title
self.url = url
@ -34,6 +34,7 @@ class Video(object):
self.date = date
self.rating = rating
self.rating_max = rating_max
self.preview_url = preview_url
class ICapVideoProvider(ICap):
def iter_page_urls(self, mozaic_url):