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__ = ['XMLinfos']
|
||||
|
|
@ -28,7 +28,7 @@ __all__ = ['XMLinfos']
|
|||
class XMLinfos(BasePage):
|
||||
def get_current(self):
|
||||
try:
|
||||
for channel in select(self.document.getroot(), 'channel'):
|
||||
for channel in self.parser.select(self.document.getroot(), 'channel'):
|
||||
title = channel.find('item/song_title').text
|
||||
artist = channel.find('item/artist_name').text
|
||||
except AttributeError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue