99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# send to
def share(self, *w):
row = self.parent.row()
if row:
# RadioTray doesn't have an addRadio method yet, so just fall back to play the stream URL
try:
group = self.map_group(row.get("genre"))
__print__(dbg.PROC, "mapping genre '%s' to RT group '%s'" % (row["genre"], group))
self.radiotray().addRadio(row["title"], row["url"], group)
except:
self.radiotray().playUrl(row["url"])
pass
# match genre to RT groups
def map_group(self, genre):
|
|
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# send to
def share(self, *w):
row = self.parent.row()
if row:
# RadioTray doesn't have an addRadio method yet, so just fall back to play the stream URL
try:
group = self.map_group(row.get("genre"))
log.PROC("mapping genre '%s' to RT group '%s'" % (row["genre"], group))
self.radiotray().addRadio(row["title"], row["url"], group)
except:
self.radiotray().playUrl(row["url"])
pass
# match genre to RT groups
def map_group(self, genre):
|