From cba2f742aaaed426c511a919798b9675261a0cf3 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 8 Oct 2010 10:51:21 +0200 Subject: [PATCH] correctly initialize base class --- 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 94dfc74e..f092c4d9 100644 --- a/weboob/capabilities/video.py +++ b/weboob/capabilities/video.py @@ -24,6 +24,7 @@ __all__ = ['BaseVideo', 'ICapVideo'] class VideoThumbnail(CapBaseObject): def __init__(self, url): + CapBaseObject.__init__(self, url) self.url = url.replace(' ', '%20') self.data = NotLoaded @@ -42,7 +43,7 @@ class BaseVideo(CapBaseObject): def __init__(self, _id, title=NotLoaded, url=NotLoaded, author=NotLoaded, duration=NotLoaded, date=NotLoaded, rating=NotLoaded, rating_max=NotLoaded, thumbnail=NotLoaded, thumbnail_url=None, nsfw=False): - self.id = unicode(_id) + CapBaseObject.__init__(self, unicode(_id)) self.title = title self.url = url self.author = author