Check-in [315eb1c757]
Overview
Comment: | Remove stray print statement |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
315eb1c75708c65e0caeb70428ec57cd |
User & Date: | mario on 2016-06-16 23:30:11 |
Other Links: | manifest | tags |
Context
2016-06-16
| ||
23:30 | Disable SSL verification for UbuntuUsers Wiki. check-in: 8cac2cfef5 user: mario tags: trunk | |
23:30 | Remove stray print statement check-in: 315eb1c757 user: mario tags: trunk | |
23:29 | Fix SpinButton() initialization for Gtk3 check-in: f1af12b221 user: mario tags: trunk | |
Changes
Modified contrib/reciva.py from [6ff6e61c9f] to [c50856b383].
︙ | ︙ | |||
78 79 80 81 82 83 84 | # Fetch real `url` on stream access/playback (delay) def row(self): r = ChannelPlugin.row(self) if not r["url"].startswith("http"): html = ahttp.get("https://radios.reciva.com/streamer?stationid=%s&streamnumber=0" % r["id"]) ls = re.findall("""(?:<iframe src=|iframe\()['"]([^'"]+)['"]""", html) | < | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | # Fetch real `url` on stream access/playback (delay) def row(self): r = ChannelPlugin.row(self) if not r["url"].startswith("http"): html = ahttp.get("https://radios.reciva.com/streamer?stationid=%s&streamnumber=0" % r["id"]) ls = re.findall("""(?:<iframe src=|iframe\()['"]([^'"]+)['"]""", html) if ls: r["url"] = ls[0] else: log.ERR("No stream found for reciva station #%s", row["id"]) return r |