Push2remote
This commit is contained in:
parent
0dd0e50ee3
commit
542a754756
@ -1,13 +1,12 @@
|
|||||||
from librb.rbRadios import RadioBrowser
|
from librb.rbRadios import RadioBrowser
|
||||||
|
|
||||||
rb = librb.RadioBrowser()
|
rb = RadioBrowser()
|
||||||
|
|
||||||
def getstations_byname(query):
|
def getstations_byname(query):
|
||||||
results = rb.stations_byname(query)
|
results = rb.stations_byname(query)
|
||||||
stations = []
|
stations = []
|
||||||
for st in results:
|
for st in results:
|
||||||
try:
|
try:
|
||||||
# url = rb.playable_station(st['id'])['url']
|
|
||||||
station = {'stationname': st['name'], 'id':st['id'], 'codec':st['codec'], 'bitrate':st['bitrate'], 'country':st['country'], 'homepage':st['homepage'], 'genre':st['tags']}
|
station = {'stationname': st['name'], 'id':st['id'], 'codec':st['codec'], 'bitrate':st['bitrate'], 'country':st['country'], 'homepage':st['homepage'], 'genre':st['tags']}
|
||||||
stations.append(station)
|
stations.append(station)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user