70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85 | 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" }
# hook menu
def __init__(self, parent):
ChannelPlugin.__init__(self, parent)
if parent:
uikit.add_menu([parent.streammenu, parent.streamactions], "Share in Radio-Browser", self.submit, insert=5)
# votes, and tags, no countries or languages
def update_categories(self):
self.categories = list(self.pricat)
for sub in [conf.radiobrowser_cat]: |
|
<
| 70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 | 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" }
# hook menu
def init2(self, parent):
if parent:
uikit.add_menu([parent.streammenu, parent.streamactions], "Share in Radio-Browser", self.submit, insert=5)
# votes, and tags, no countries or languages
def update_categories(self):
self.categories = list(self.pricat)
for sub in [conf.radiobrowser_cat]: |