From 3d02ff23a009f1be90997d521886811f04165c0b Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 17 Apr 2010 11:20:33 +0200 Subject: [PATCH] new preview_url attribute --- weboob/capabilities/video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/capabilities/video.py b/weboob/capabilities/video.py index c2fb3e09..540512e4 100644 --- a/weboob/capabilities/video.py +++ b/weboob/capabilities/video.py @@ -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):