simplify and factorize code, remove dead code, follow conventions, use new-style classes

This commit is contained in:
Christophe Benz 2010-12-09 15:27:06 +01:00 committed by Romain Bignon
commit f1b3264a67
28 changed files with 202 additions and 251 deletions

View file

@ -25,6 +25,7 @@ from weboob.tools.value import ValuesDict, Value
from .browser import CanalplusBrowser
from .pages import CanalplusVideo
__all__ = ['CanalplusBackend']
@ -57,7 +58,6 @@ class CanalplusBackend(BaseBackend, ICapVideo):
if 'thumbnail' in fields:
with self.browser:
video.thumbnail.data = self.browser.readurl(video.thumbnail.url)
return video
OBJECTS = {CanalplusVideo: fill_video}