diff --git a/AUTHORS b/AUTHORS index 820457d4..25147d0f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -52,7 +52,7 @@ Benjamin Carton * handjoob application. Pierre Mazière - * LCL module maintainer; + * LCL and RockRadio modules maintainer; * BNPorc fixes. Xavier Guerrin diff --git a/modules/rockradio/backend.py b/modules/rockradio/backend.py index 61b9c381..15f9462b 100644 --- a/modules/rockradio/backend.py +++ b/modules/rockradio/backend.py @@ -20,22 +20,15 @@ # along with weboob. If not, see . -import lxml.html from weboob.capabilities.radio import ICapRadio, Radio, Stream, Emission from weboob.capabilities.collection import ICapCollection from weboob.tools.backend import BaseBackend from weboob.tools.browser import StandardBrowser -from weboob.tools.parsers.iparser import IParser __all__ = ['RockRadioBackend'] -class LxmlParser(IParser): - def parse(self, data, encoding=None): - return lxml.html.fromstring(data.read()) - - class RockRadioBackend(BaseBackend, ICapRadio, ICapCollection): NAME = 'rockradio' MAINTAINER = u'Pierre Mazière' @@ -47,12 +40,9 @@ class RockRadioBackend(BaseBackend, ICapRadio, ICapCollection): ALLINFO = 'http://www.rockradio.com' # FIXME - # + # # MPlayer does not like the pls file sent from this site. - def create_default_browser(self): - return self.create_browser(parser=LxmlParser()) - def _parse_current(self, data): current = data.split(' - ') if len(current) == 2: