
cigs = single("/var/www/kroobot.net/liquidsoap/cigs.mp3")

station01_live = input.harbor("station01_live", port=8080, password="hackme") 

station01_auto = input.harbor("station01_auto", port=8080, password="hackme") 

s01 = fallback(track_sensitive=false,
[
station01_live, 
station01_auto,
cigs
])

output.icecast(
%mp3(bitrate=128, samplerate=44100, stereo=true), 
  host="localhost", 
  mount="/station01", 
  port=8000, 
  password = "hackme", 
  name="station01",
  description="Station 01. Live & Recorded Euro-centric political analysis and variety.",
  genre="Variety",
  url="https://gizmo.kroobot.net/station01",
  public=true, 
  s01
)  

#===========
 
station02_live = input.harbor("station02_live", port=8080, password="hackme") 

station02_auto = input.harbor("station02_auto", port=8080, password="hackme") 

station02_auto=buffer(station02_auto)

s02 = fallback(track_sensitive=false, 
[
station02_live,
station02_auto, 
cigs
])

output.icecast(
%mp3(bitrate=128, samplerate=44100, stereo=true), 
  host="localhost", 
  mount="/station02", 
  port=8000, 
  password = "hackme", 
  name="station02",
  description="Station 02. Live & Recorded Euro-centric political analysis and variety.",
  genre="Variety",
  url="https://gizmo.kroobot.net/station02",
  public=true, 
  s02 
)

#===========

station03_live = input.harbor("station03_live", port=8080, password="hackme") 

station03_auto = input.harbor("station03_auto", port=8080, password="hackme") 

s03 = fallback(track_sensitive=false,
[
station03_live,
station03_auto,
cigs
])

output.icecast(
%mp3(bitrate=128, samplerate=44100, stereo=true), 
  host="localhost", 
  mount="/station03", 
  port=8000, 
  password = "hackme", 
  name="station03",
  description="Station 03. Live & Recorded Euro-centric political analysis and variety.",
  genre="Variety",
  url="https://gizmo.kroobot.net/station03",
  public=true, 
  s03
)
