Add RB API helpers
This commit is contained in:
16
rbConstants.py
Normal file
16
rbConstants.py
Normal file
@ -0,0 +1,16 @@
|
||||
BASE_URL = "http://www.radio-browser.info/webservice/"
|
||||
|
||||
endpoints = {
|
||||
"countries": {1: "{fmt}/countries", 2: "{fmt}/countries/{filter}"},
|
||||
"codecs": {1: "{fmt}/codecs", 2: "{fmt}/codecs/{filter}"},
|
||||
"states": {
|
||||
1: "{fmt}/states",
|
||||
2: "{fmt}/states/{filter}",
|
||||
3: "{fmt}/states/{country}/{filter}",
|
||||
},
|
||||
"languages": {1: "{fmt}/languages", 2: "{fmt}/languages/{filter}"},
|
||||
"tags": {1: "{fmt}/tags", 2: "{fmt}/tags/{filter}"},
|
||||
"stations": {1: "{fmt}/stations", 3: "{fmt}/stations/{by}/{search_term}"},
|
||||
"playable_station": {3: "{ver}/{fmt}/url/{station_id}"},
|
||||
"station_search": {1: "{fmt}/stations/search"},
|
||||
}
|
Reference in New Issue
Block a user