Rename BasePage to Page
This commit is contained in:
parent
44dffce7b2
commit
444d36eee8
146 changed files with 525 additions and 525 deletions
|
|
@ -20,10 +20,10 @@
|
|||
|
||||
from weboob.capabilities.lyrics import SongLyrics
|
||||
from weboob.capabilities.base import NotAvailable, NotLoaded
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import Page
|
||||
|
||||
|
||||
class ArtistResultsPage(BasePage):
|
||||
class ArtistResultsPage(Page):
|
||||
def iter_lyrics(self):
|
||||
for link in self.parser.select(self.document.getroot(), 'table[title~=Results] a.tlink'):
|
||||
artist = unicode(link.text_content())
|
||||
|
|
@ -33,7 +33,7 @@ class ArtistResultsPage(BasePage):
|
|||
yield lyr
|
||||
|
||||
|
||||
class ArtistSongsPage(BasePage):
|
||||
class ArtistSongsPage(Page):
|
||||
def iter_lyrics(self, artist):
|
||||
for th in self.parser.select(self.document.getroot(), 'th.text'):
|
||||
txt = th.text_content()
|
||||
|
|
@ -47,7 +47,7 @@ class ArtistSongsPage(BasePage):
|
|||
yield songlyrics
|
||||
|
||||
|
||||
class SongResultsPage(BasePage):
|
||||
class SongResultsPage(Page):
|
||||
def iter_lyrics(self):
|
||||
first = True
|
||||
for tr in self.parser.select(self.document.getroot(), 'table[title~=Results] tr'):
|
||||
|
|
@ -68,7 +68,7 @@ class SongResultsPage(BasePage):
|
|||
yield songlyrics
|
||||
|
||||
|
||||
class SonglyricsPage(BasePage):
|
||||
class SonglyricsPage(Page):
|
||||
def get_lyrics(self, id):
|
||||
artist = NotAvailable
|
||||
title = NotAvailable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue