-
Notifications
You must be signed in to change notification settings - Fork 0
Station settings
Ondřej Hladík edited this page Apr 3, 2025
·
1 revision
In the entire configuration file config.py there are a total of three lists that are used to configure stations.
The first list is a list of stream URLs:
streams = [
'http://icecast1.play.cz/kiss128.mp3'
]The second list is the station name for the given stream:
radio_names = [
'Kiss radio'
]The third listing is the API URL for getting the playing song:
now_playing_api = {
'Kiss radio': ('https://radia.cz/api/v1/radio/radio-kiss/songs/now.json', 'interpret', 'song')
}The parameters for this list are set as follows: 'Station name': ('API URL in json', 'Key for the performer', 'Key for song title')
Each station must have the same order in each list, otherwise it will not work properly.