Check-in [66802cbdf6]
Overview
Comment: | Reciva: added a more readable log.ERR() message for empty results. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
66802cbdf65c4e88e5fff6943082b68f |
User & Date: | mario on 2016-11-01 16:02:21 |
Other Links: | manifest | tags |
Context
2016-11-01
| ||
16:03 | Contrib plugin: show `extra` column in bookmarks (origin channel). Changed bookmark.add() to add it only if field missing. check-in: 5bc9e1a5f8 user: mario tags: trunk | |
16:02 | Reciva: added a more readable log.ERR() message for empty results. check-in: 66802cbdf6 user: mario tags: trunk | |
15:55 | Added login capability. check-in: 9f6a662093 user: mario tags: trunk | |
Changes
Modified contrib/reciva.py from [87b3a20dac] to [ac7d64a717].
︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | + + + | self.categories.append(c[1]) # fetchy fetch def update_streams(self, cat): entries = [] html = ahttp.get(self.base_url % (self.catmap[cat.lower()], conf.max_streams)) if not html: log.ERR("No results from http://radios.reciva.com/ server. Their category browsing sometimes breaks. We're not using the search function as that would strain their server too much. You might try adding login credentials to `.netrc` - albeit that rarely helps.", html) return [] # extract for row in (pq(row) for row in pq(html).find("#mytable").find(".oddrow, .evenrow")): u = row.find(".streamlink") if u: id = re.findall("(\d+)", u.attr("href"))[0] entries.append({ |
︙ |