Index: contrib/delicast.py ================================================================== --- contrib/delicast.py +++ contrib/delicast.py @@ -1,11 +1,11 @@ # encoding: UTF-8 # api: streamtuner2 # title: Delicast # description: directory of streaming media # url: http://delicast.com/ -# version: 0.7 +# version: 0.8 # type: channel # category: radio # config: - # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA @@ -59,19 +59,20 @@ def update_streams(self, cat, search=None): ucat = re.sub("\W+", "-", cat.lower()) html = "" for i in range(1, 5): - add = ahttp.get("http://delicast.com/radio/" + ucat + ("" if i == 1 else "/%s" % i)) + add = ahttp.get("http://delicast.com/radio/q:" + ucat + ("" if i == 1 else "/%s" % i)) html += add - if not re.search("href='http://delicast.com/radio/%s/%s'" % (ucat, i+1), add): + if not re.search("href='http://delicast.com/radio/q:%s/%s'" % (ucat, i+1), add): break r = [] + log.HTML(html) for ls in re.findall(""" \d+\. .*? - ]+href="(http[^"]+/radio/\w+/\w+)" + ]+href="(http[^"]+/radio/\w+)" .*? /pics/((?!play_tri)\w+) .*? 120%'>([^<>]+) """, html, re.X|re.S):