Check-in [01c7c85d47]
Comment: | radio-browser.info: support for submitting stations |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
01c7c85d478032f412b58bbe95f0a952 |
User & Date: | mario on 2016-10-31 14:31:30 |
Other Links: | manifest | tags |
2016-10-31
| ||
14:32 | Update specbuttons help pages. check-in: ed73b89bba user: mario tags: trunk | |
14:31 | radio-browser.info: support for submitting stations check-in: 01c7c85d47 user: mario tags: trunk | |
2016-10-30
| ||
13:13 | bookmarks: save origin channel in `extra` field. (It's mostly unused, except for the Jamendo and timer plugins.) check-in: 7bdd44a163 user: mario tags: trunk | |
Modified channels/radiobrowser.py from [e54a90dfb7] to [0e7f4074c1].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + | # encoding: UTF-8 # api: streamtuner2 # title: RadioBrowser # description: Community collection of stations; votes, clicks, homepage links. |
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | + | # Clementine / Kodi / RadioDroid / etc. import re import json from config import * from channels import * from uikit import uikit import ahttp # API endpoints: # http://www.radio-browser.info/webservice/json/countries # http://www.radio-browser.info/webservice/json/languages # http://www.radio-browser.info/webservice/json/tags |
67 68 69 70 71 72 73 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | - + + + + + + | has_search = True listformat = "pls" titles = dict(listeners="Votes+", bitrate="Votes-", playing="Country") base = "http://www.radio-browser.info/webservice/json/" categories = [] pricat = ("topvote", "topclick") catmap = { "tags": "bytag", "countries": "bycountry", "languages": "bylanguage" } |
112 113 114 115 116 117 118 | 118 119 120 121 122 123 124 125 126 127 128 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 | - - + + + + + + + + + + + + + + + + + + + + + + + + + + + | listeners = int(e["votes"]), bitrate = - int(e["negativevotes"]), )) return r # fetch multiple pages |