move select() in parser
This commit is contained in:
parent
cf2dca7520
commit
9afb301ebe
30 changed files with 197 additions and 197 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.parsers.lxmlparser import select
|
||||
|
||||
|
||||
|
||||
__all__ = ['PlayerPage']
|
||||
|
|
@ -27,6 +27,6 @@ __all__ = ['PlayerPage']
|
|||
|
||||
class PlayerPage(BasePage):
|
||||
def get_current(self):
|
||||
title = select(self.document.getroot(), 'span.titre_en_cours', 1).text
|
||||
artist = select(self.document.getroot(), 'span.artiste_en_cours', 1).text
|
||||
title = self.parser.select(self.document.getroot(), 'span.titre_en_cours', 1).text
|
||||
artist = self.parser.select(self.document.getroot(), 'span.artiste_en_cours', 1).text
|
||||
return unicode(artist).strip(), unicode(title).strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue