Check-in [ea2010c673]
Overview
Comment: | Fix HTML assembling (<body>.+?</body> cleanup for PyQuery to see all entries). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ea2010c6738d9ab08a7c52288bcc8e3f |
User & Date: | mario on 2016-10-08 04:07:59 |
Other Links: | manifest | tags |
Context
2016-10-08
| ||
14:42 | Fix statusbar #257: minor unicode fixes (wasn't showing up due to str/unicode in Py2, imported compat.unicode for Py3 now) check-in: 04daa96360 user: mario tags: trunk | |
04:07 | Fix HTML assembling (<body>.+?</body> cleanup for PyQuery to see all entries). check-in: ea2010c673 user: mario tags: trunk | |
03:32 | New channel housemixes.com added. check-in: fa19c2995e user: mario tags: trunk | |
Changes
Modified contrib/housemixes.py from [f5965e2332] to [5c3049421c].
1 2 3 4 5 | # api: streamtuner2 # title: house-mixes.com # description: UK DJs house/techno mixes # type: channel # category: archive | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 | # api: streamtuner2 # title: house-mixes.com # description: UK DJs house/techno mixes # type: channel # category: archive # version: 0.4 # url: http://www.house-mixes.com/ # config: - # priority: contrib # png: # iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAIAAADTi7lxAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH4AoIAh8yU50KHAAABKFJREFUOMtllHtM1WUYx7/P+/7eH4fDATpcDkcBuSuwIFG8l5eGmjnNwK3S/mu2MU1ctdacl1pmO1vWMpfTwBnNpuSW900s1CaJLpilCEOZ7kRJiFzOlXP5/Z7+QBHtu/ff97Pv8z57P6Tr # OjPjUZjZYIrTqNjOJUnRWemUKAGgN4DWXv5jUOseRsBgQSCisVtEREqpaDT6iAJBKE+lqiJanm2EImh9QEMeBiFWR7qV7Fa09GF/G+74eDxI07THIGbWBSoLxJaFHAjyoZsxXWZGfG55ckaOUJZwwDfU3SruXXvZ6XFajV2/U1MPooxRmqZp2lgXi6R1pdg027x4mw71Zpevesu15vXsjAlK10FkGqY/EGi+2nr80AG949T6Ms8zFnH0Fpv8qJpSCiACVRWIng3Y+YKsWLjo3C9N4UiEmQ3DGPZ6hz1ewzCYmZnv37/v+vzLyhLHkWU0 # M5XG3oeUUpFIND8eP61G9zB/1VO2Y0/d3BlloVDockvL2bONHV23o4aRkZFRuWrl/HlzLRZLKBzZs3ff30e2F6qBD1poOAylNFh0VWin2sXUXY1XCuP31tWbzIODgy6Xy+l0js0uhEx1OD765NOBgQFm7h8YrF63btt08V4ZFdopVldYkiHb1pDxPg4swooVK3v+6Y1Ewi6Xy2azPV4tEUAAbDbbjp2fBYJBZj55tmlZSVZfNa6upVkOKaoKeKqT/SGc/9cyf+Gi9AlprW3XausOjPh8STGUZSWdQEQFCSInQZpBX+2+/ed/bQZQNKXA |
︙ | ︙ | |||
79 80 81 82 83 84 85 | return # 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) | | | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | return # 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("</body>.+?<body>", "", 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(), "playing": card(".card-audio-user a").text(), "genre": card(".card-tags a span").text(), |
︙ | ︙ |