From 542a7547564c12a2beba6adc25a27889b863d4e1 Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Sun, 28 Jul 2019 10:15:44 +0200 Subject: [PATCH] Push2remote --- librb/radiobrowser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/librb/radiobrowser.py b/librb/radiobrowser.py index bd59eac..d2b55d6 100644 --- a/librb/radiobrowser.py +++ b/librb/radiobrowser.py @@ -1,13 +1,12 @@ from librb.rbRadios import RadioBrowser -rb = librb.RadioBrowser() +rb = RadioBrowser() def getstations_byname(query): results = rb.stations_byname(query) stations = [] for st in results: 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']} stations.append(station) except: