Check-in [33053d07d0]
Overview
Comment: | Update delicast plugin for new q: url scheme |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
33053d07d0e425390eb2c1e10d09551f |
User & Date: | mario on 2018-01-15 20:05:36 |
Other Links: | manifest | tags |
Context
2018-01-15
| ||
20:06 | rm debugging output check-in: a18bd89956 user: mario tags: trunk | |
20:05 | Update delicast plugin for new q: url scheme check-in: 33053d07d0 user: mario tags: trunk | |
19:43 | Fix radiolist.net current page layout extraction (some countries empty now, just webplayers for some pages) check-in: aaf273595a user: mario tags: trunk | |
Changes
Modified contrib/delicast.py from [d83562106b] to [ff941faf6b].
1 2 3 4 5 | # encoding: UTF-8 # api: streamtuner2 # title: Delicast # description: directory of streaming media # url: http://delicast.com/ | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 | # encoding: UTF-8 # api: streamtuner2 # title: Delicast # description: directory of streaming media # url: http://delicast.com/ # version: 0.8 # type: channel # category: radio # config: - # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA # AmJLR0QA/4ePzL8AAAAHdElNRQffBB4UJAsX77G0AAAANUlEQVQY02OwQwMMdv/BAEUASCFEoAIIEZIEIGYjBCAUwpb/6O5ACEABGQJ2cFsQIlB3oAEA6iVo+vl+BbQA # AAAldEVYdGRhdGU6Y3JlYXRlADIwMTUtMDQtMzBUMjI6MzY6MDMrMDI6MDAFLUvfAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE1LTA0LTMwVDIyOjM2OjAzKzAyOjAwdHDz |
︙ | ︙ | |||
57 58 59 60 61 62 63 | # Fetch entries def update_streams(self, cat, search=None): ucat = re.sub("\W+", "-", cat.lower()) html = "" for i in range(1, 5): | | | > | | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | # Fetch entries 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/q:" + ucat + ("" if i == 1 else "/%s" % i)) html += 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(""" <b>\d+</b>\. .*? <a[^>]+href="(http[^"]+/radio/\w+)" .*? /pics/((?!play_tri)\w+) .*? 120%'>([^<>]+)</span> """, html, re.X|re.S): if len(ls): homepage, country, title = ls |
︙ | ︙ |