Check-in [d275a3e6e7]
Overview
| Comment: | Move strip_tags(), entity_decode(), and nl() out of class into normal functions. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
d275a3e6e7f246c1f25fb4fa63b913e1 |
| User & Date: | mario on 2015-05-02 19:52:30 |
| Other Links: | manifest | tags |
Context
|
2015-05-02
| ||
| 19:52 | Move strip_tags(), entity_decode(), and nl() out of class into normal functions. check-in: 41c3273da9 user: mario tags: trunk | |
| 19:52 | Move strip_tags(), entity_decode(), and nl() out of class into normal functions. check-in: d275a3e6e7 user: mario tags: trunk | |
| 05:45 | New channel plugin for Radionomy. check-in: c734771f92 user: mario tags: trunk | |
Changes
Modified channels/internet_radio.py from [625824732f] to [f1f9b6b827].
| ︙ | ︙ | |||
125 126 127 128 129 130 131 |
uu = rx_data.search(div)
if uu:
(url, title, playing, homepage, genres, listeners, bitrate) = uu.groups()
# transform data
r.append({
"url": url,
| | | | | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
uu = rx_data.search(div)
if uu:
(url, title, playing, homepage, genres, listeners, bitrate) = uu.groups()
# transform data
r.append({
"url": url,
"genre": strip_tags(genres or ""),
"homepage": ahttp.fix_url(homepage or ""),
"title": nl(title or ""),
"playing": nl(playing or ""),
"bitrate": int(bitrate or 0),
"listeners": int(listeners or 0),
"format": "audio/mpeg", # there is no stream info on that, but internet-radio.org.uk doesn't seem very ogg-friendly anyway, so we assume the default here
})
else:
log.DATA("Regex couldn't decipher entry:", div)
return r
|
| ︙ | ︙ |