Check-in [291090a1b2]
Comment: | Update documentation, plan on making liveradio a default plugin. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
291090a1b20ef9c514e00bc9970ca983 |
User & Date: | mario on 2017-07-04 14:31:38 |
Other Links: | manifest | tags |
2017-08-05
| ||
19:37 | delicast: updated for new radio listing format. check-in: 0ca35b742b user: mario tags: trunk | |
2017-07-04
| ||
14:31 | Update documentation, plan on making liveradio a default plugin. check-in: 291090a1b2 user: mario tags: trunk | |
2017-05-09
| ||
23:14 | Fix extraction for reordered streema attribute values. check-in: 36e3870191 user: mario tags: trunk | |
Modified contrib/liveradio.py from [60d876bcc4] to [602839c927].
9 10 11 12 13 14 15 16 17 18 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | + - + + - + + + - + - + - + - + + + + + + + | # config: - # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABB0lEQVR4nLWTQUpDMRCGv0lregDBI3gAfW/hRrp8ZOMh5PUMXkFcu7EbTxHd # CC4EhfQkQg/QR5txYQqvMdVHwdnMZJj555uQwH+YurpaNZUOqTWl5i5qGIusDxIAZgBGuBhCsiOgrq7WUa+tkReAjepHystQgmn8zt0As40y # skYa4HwfSS5w2otd8svtWurqHyvnCZcXAHRRW7v8nANnq6bSPk0ucFQS+M3G2fkduMqLrJF5d3zSTnyYATsXmhO89WLfix8A1NWjvwhek5+m # praLGibPC8knFwnEh4U1ct9FvUvoLk0uPbjiCgCPyd+KD0/WyKX4EPcJFLG2/8EaMeLDoE91sH0B3ERWq2CKMoYAAAAASUVORK5CYII= # priority: extra # x-elevate: priority:default # extraction-method: regex, action-handler # # LiveRadio.ie, based in Ireland, is a radio station directory. It provides |
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | + + + + + | img = self.base + img, img_resize = 32 )) return r # Update `url` on station data access (incurs a delay for playing or recording) # # · utilizes action.handler["urn:liveradio"] → urn_resolve hook # · where the .update_streams() extraction stores `urn:liveradio:12345` as urls # · and this callback extracts the JS invocation URL from liveradio.de station summaries # def resolve_urn(self, row): if row.get("url").startswith("urn:liveradio"): id = row["url"].split(":")[2] html = ahttp.get(self.base + "stations/" + id) ls = re.findall("jPlayer\('setMedia',\s*\{\s*'?\w+'?:\s*'([^']+)'", html, re.M) if ls: row["url"] = unhtml(ls[0]) else: log.ERR("No stream found on %s" % row["homepage"]) return row |