17 lines
660 B
Python
17 lines
660 B
Python
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"},
|
|
}
|