Index: contrib/housemixes.py ================================================================== --- contrib/housemixes.py +++ contrib/housemixes.py @@ -1,11 +1,11 @@ # api: streamtuner2 # title: house-mixes.com # description: UK DJs house/techno mixes # type: channel # category: archive -# version: 0.3 +# version: 0.4 # url: http://www.house-mixes.com/ # config: - # priority: contrib # png: # iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAIAAADTi7lxAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH4AoIAh8yU50KHAAABKFJREFUOMtllHtM1WUYx7/P+/7eH4fDATpcDkcBuSuwIFG8l5eGmjnNwK3S/mu2MU1ctdacl1pmO1vWMpfTwBnNpuSW900s1CaJLpilCEOZ7kRJiFzOlXP5/Z7+QBHtu/ff97Pv8z57P6Tr @@ -81,11 +81,11 @@ # collect html = ahttp.get(self.base_url + self.catmap[cat]) for i in range(2, int(conf.max_streams)/50): #conf.housemixes_pages): if html.find("latest/" + str(i)): html = html + ahttp.get(self.base_url + self.catmap[cat] + "/latest/%s" % i) - html = re.sub(".+", "", html, 100, re.S) + html = re.sub(".+?", "", html, 100, re.S) # extract for card in [pq(e) for e in pq(html)(".card-audio")]: r = { "title": card(".card-audio-title span").text(),