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,