Check-in [f249524147]
Overview
Comment: | Less debug messages for reciva.resolve_urn |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
f24952414760a337fcb718acc6cf1096 |
User & Date: | mario on 2016-11-06 12:12:56 |
Other Links: | manifest | tags |
Context
2016-11-06
| ||
12:13 | Implement a status message for URN: resolving, shorten code back (- row[] object gets implicitly updated.) check-in: 199ac60b55 user: mario tags: trunk | |
12:12 | Less debug messages for reciva.resolve_urn check-in: f249524147 user: mario tags: trunk | |
11:43 | Show player config screenshot also in config_apps/placeholder page. check-in: 2a46669362 user: mario tags: trunk | |
Changes
Modified contrib/reciva.py from [12c0c0ed91] to [80c3e098ef].
︙ | ︙ | |||
87 88 89 90 91 92 93 | return entries # Fetch real `url` on stream access/playback (delay) def resolve_urn(self, r): if r["url"].startswith("urn:"): id = r["url"].split(":")[2] | > | > > | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | return entries # Fetch real `url` on stream access/playback (delay) def resolve_urn(self, r): if r["url"].startswith("urn:"): id = r["url"].split(":")[2] html = ahttp.get( "https://radios.reciva.com/streamer?stationid=%s&streamnumber=0" % id, timeout=4, quieter=True, statusmsg="Resolving actual stream URL for `%s`" % r["url"] ) 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 |
︙ | ︙ |