From 0bcf72c08f36b03f74b8b0d4c9152ff652fc8489 Mon Sep 17 00:00:00 2001 From: Roger Philibert Date: Tue, 20 Apr 2010 23:53:33 +0200 Subject: [PATCH] code clean --- weboob/backends/youporn/pages/index.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/weboob/backends/youporn/pages/index.py b/weboob/backends/youporn/pages/index.py index 699c8e56..d8369d3d 100644 --- a/weboob/backends/youporn/pages/index.py +++ b/weboob/backends/youporn/pages/index.py @@ -18,9 +18,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """ -from .base import PornPage from weboob.capabilities.video import Video +from .base import PornPage + + +__all__ = ['IndexPage'] + + class IndexPage(PornPage): def iter_videos(self): uls = self.document.getroot().cssselect("ul[class=clearfix]") @@ -61,7 +66,7 @@ class IndexPage(PornPage): rating_max = float(p.find('span').text.strip()[2:]) yield Video(int(_id), - title, + title=title, rating=rating, rating_max=rating_max, duration=duration,