strip artist and title
This commit is contained in:
parent
ff2198cd8a
commit
948f2b9ed2
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class NovaBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
doc = parser.parse(StringIO(html))
|
||||
artist = u' '.join([txt.strip() for txt in doc.xpath('//div[@class="artist"]')[0].itertext()])
|
||||
title = u' '.join([txt.strip() for txt in doc.xpath('//div[@class="title"]')[0].itertext()])
|
||||
return unicode(artist), unicode(title)
|
||||
return unicode(artist).strip(), unicode(title).strip()
|
||||
|
||||
def fill_radio(self, radio, fields):
|
||||
if 'current' in fields:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue