132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
if conf.radionomy_update:
try:
d = json.loads(
ahttp.get("https://www.radionomy.com/en/OnAir/Update", post=1, referer=req, ajax=1)
)
if not d:
return
print d
self.playing.update(
{row["RadioUID"]: "{Title} - {Artist}".format(**row) for row in d}
)
except Exception as e:
log.ERR("Radionomy title update:", e)
|
|
|
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
if conf.radionomy_update:
try:
d = json.loads(
ahttp.get("https://www.radionomy.com/en/OnAir/Update", post=1, referer=req, ajax=1)
)
if not d:
return
log.DEBUG_DATA(d)
self.playing.update(
{row["RadioUID"]: "{Title} - {Artist}".format(**row) for row in d}
)
except Exception as e:
log.ERR("Radionomy title update:", e)
|