Check-in [a1af3dc990]
Overview
Comment: | add ajax station url fetching mode |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
a1af3dc990e876c737be8a08386c1c96 |
User & Date: | mario on 2022-02-28 08:12:40 |
Other Links: | manifest | tags |
Context
2022-03-01
| ||
08:37 | Add developer API support for shoutcast. check-in: e3d1d9a216 user: mario tags: trunk | |
2022-02-28
| ||
08:12 | add ajax station url fetching mode check-in: a1af3dc990 user: mario tags: trunk | |
2022-02-22
| ||
00:31 | Release as 2.2.2 check-in: 8b7a75f548 user: mario tags: trunk, 2.2.2 | |
Changes
Modified channels/shoutcast.py from [f3940fc734] to [39c956323b].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | - + - + | # api: streamtuner2 # title: Shoutcast.com # description: Primary list of shoutcast servers (now managed by radionomy). # type: channel # category: radio # author: Mario # original: Jean-Yves Lefort |
︙ | |||
129 130 131 132 133 134 135 136 137 138 139 140 141 142 | 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | + + + + - + + + + + + + + + + | IsRadionomy:true Listeners:159 Name:"AOLMRadio" StreamUrl:null """ entries = [] for e in json: if self.listformat == "json": url = "urn:shoutcast:" + str(e["ID"]) else: url = "http://yp.shoutcast.com/sbin/tunein-station.%s?id=%s" % (self.listformat, e.get("ID", "0")) entries.append({ "id": int(e.get("ID", 0)), "genre": str(e.get("Genre", "")), "title": str(e.get("Name", "")), "playing": str(e.get("CurrentTrack", "")), "bitrate": int(e.get("Bitrate", 0)), "listeners": int(e.get("Listeners", 0)), |