From 948f2b9ed210c303dadf458c2b980834947baef0 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 27 Oct 2012 11:43:44 +0200 Subject: [PATCH] strip artist and title --- modules/nova/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nova/backend.py b/modules/nova/backend.py index 71b56bae..3108bfca 100644 --- a/modules/nova/backend.py +++ b/modules/nova/backend.py @@ -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: