code clean
This commit is contained in:
parent
e29f6b9a72
commit
0bcf72c08f
1 changed files with 7 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue