get the current song instead of the previous one
This commit is contained in:
parent
08aecc10d1
commit
5d3981cd44
1 changed files with 2 additions and 2 deletions
|
|
@ -25,6 +25,6 @@ __all__ = ['PlayerPage']
|
|||
|
||||
class PlayerPage(BasePage):
|
||||
def get_current(self):
|
||||
title = select(self.document.getroot(), 'div#liste_titres span.titre', 1).text.strip()
|
||||
artist = select(self.document.getroot(), 'div#liste_titres span.artiste', 1).text.strip()
|
||||
title = select(self.document.getroot(), 'span.titre_en_cours', 1).text.strip()
|
||||
artist = select(self.document.getroot(), 'span.artiste_en_cours', 1).text.strip()
|
||||
return unicode(artist), unicode(title)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue