Index: contrib/liveradio.py ================================================================== --- contrib/liveradio.py +++ contrib/liveradio.py @@ -1,11 +1,11 @@ # encoding: UTF-8 # api: streamtuner2 # title: Liveradio.ie # description: Irish/worldwide radio station directory # url: http://liveradio.ie/ -# version: 0.2 +# version: 0.3 # type: channel # category: radio # config: - # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABB0lEQVR4nLWTQUpDMRCGv0lregDBI3gAfW/hRrp8ZOMh5PUMXkFcu7EbTxHd @@ -87,11 +87,11 @@ # ยท keep station ID as `urn:liveradion:12345` # r = [] ls = re.findall(""" itemtype="http://schema.org/RadioStation"> .*? - href="/stations/([\w-]+) .*? + href="(?:https?://www.liveradio.ie)?/stations/([\w-]+) .*? ([^<]+)< .*? itemprop="name">]+>([^<]+) .*? class="genre">([^<]+)< """, html, re.X|re.S)