mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2024-11-22 03:49:27 +01:00
update soap.liq, compat. with liquidsoap >2.2
This commit is contained in:
parent
d4ec43f6dc
commit
46fae8ace2
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/liquidsoap
|
#!/usr/bin/liquidsoap
|
||||||
set("log.stdout", true)
|
set("log.stdout", true)
|
||||||
set("log.file",false)
|
set("log.file",false)
|
||||||
#%include "cross.liq"
|
|
||||||
|
|
||||||
# Allow requests from Telnet (Liquidsoap Requester)
|
# Allow requests from Telnet (Liquidsoap Requester)
|
||||||
set("server.telnet", true)
|
set("server.telnet", true)
|
||||||
@ -121,55 +120,83 @@ pmain_crossed = mksafe(pmain_crossed)
|
|||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio",
|
send_icy_metadata=true, description="WOW!Radio",
|
||||||
password = "lel", mount = "wow.ogg",
|
password = "lel", mount = "wow.ogg",
|
||||||
pmain_crossed)
|
pmain_crossed)
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio | Anjunadeep",
|
send_icy_metadata=true, description="WOW!Radio | Anjunadeep",
|
||||||
password = "lel", mount = "anjunadeep.ogg",
|
password = "lel", mount = "anjunadeep.ogg",
|
||||||
panjunadeep)
|
panjunadeep)
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio | Berlin",
|
send_icy_metadata=true, description="WOW!Radio | Berlin",
|
||||||
password = "lel", mount = "berlin.ogg",
|
password = "lel", mount = "berlin.ogg",
|
||||||
pberlin)
|
pberlin)
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio | Breakbeat",
|
send_icy_metadata=true, description="WOW!Radio | Breakbeat",
|
||||||
password = "lel", mount = "breaks.ogg",
|
password = "lel", mount = "breaks.ogg",
|
||||||
pbreaks)
|
pbreaks)
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio | Dnb",
|
send_icy_metadata=true, description="WOW!Radio | Dnb",
|
||||||
password = "lel", mount = "dnb.ogg",
|
password = "lel", mount = "dnb.ogg",
|
||||||
pdnb)
|
pdnb)
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio | Raves",
|
send_icy_metadata=true, description="WOW!Radio | Trance",
|
||||||
password = "lel", mount = "raves.ogg",
|
|
||||||
praves)
|
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
|
||||||
host = "10.7.0.3", port = 24100,
|
|
||||||
icy_metadata="true", description="WOW!Radio | Trance",
|
|
||||||
password = "lel", mount = "trance.ogg",
|
password = "lel", mount = "trance.ogg",
|
||||||
ptrance)
|
ptrance)
|
||||||
|
|
||||||
|
|
||||||
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=164),
|
||||||
host = "10.7.0.3", port = 24100,
|
host = "10.7.0.3", port = 24100,
|
||||||
icy_metadata="true", description="WOW!Radio | Weed",
|
send_icy_metadata=true, description="WOW!Radio | Weed",
|
||||||
password = "lel", mount = "weed.ogg",
|
password = "lel", mount = "weed.ogg",
|
||||||
pweed)
|
pweed)
|
||||||
|
|
||||||
|
output.icecast(%vorbis.cbr(samplerate=48000, channels=2, bitrate=128),
|
||||||
|
host = "10.7.0.3", port = 24100,
|
||||||
|
send_icy_metadata=true, description="WOW!Radio | Rave",
|
||||||
|
password = "lel", mount = "rave.ogg",
|
||||||
|
praves)
|
||||||
|
|
||||||
|
|
||||||
|
def get_now_playing_filepaths(_)
|
||||||
|
def null_list(key, _list)
|
||||||
|
list.assoc.mem(key, _list) ? list.assoc(key, _list) : null()
|
||||||
|
end
|
||||||
|
|
||||||
|
pmain_meta = pmain.last_metadata() ?? []
|
||||||
|
panjunadeep_meta = panjunadeep.last_metadata() ?? []
|
||||||
|
pberlin_meta = pberlin.last_metadata() ?? []
|
||||||
|
pbreaks_meta = pbreaks.last_metadata() ?? []
|
||||||
|
pdnb_meta = pdnb.last_metadata() ?? []
|
||||||
|
praves_meta = praves.last_metadata() ?? []
|
||||||
|
ptrance_meta = ptrance.last_metadata() ?? []
|
||||||
|
pweed_meta = pweed.last_metadata() ?? []
|
||||||
|
|
||||||
|
pmain_filename = null_list("filename", pmain_meta)
|
||||||
|
panjunadeep_filename = null_list("filename", panjunadeep_meta)
|
||||||
|
pberlin_filename = null_list("filename", pberlin_meta)
|
||||||
|
pbreaks_filename = null_list("filename", pbreaks_meta)
|
||||||
|
pdnb_filename = null_list("filename", pdnb_meta)
|
||||||
|
praves_filename = null_list("filename", praves_meta)
|
||||||
|
ptrance_filename = null_list("filename", ptrance_meta)
|
||||||
|
pweed_filename = null_list("filename", pweed_meta)
|
||||||
|
|
||||||
|
"pmain_filename=#{pmain_filename}\npanjunadeep_filename=#{panjunadeep_filename}\npberlin_filename=#{pberlin_filename}\npbreaks_filename=#{pbreaks_filename}\npdnb_filename=#{pdnb_filename}\npraves_filename=#{praves_filename}\nptrance_filename=#{ptrance_filename}\npweed_filename=#{pweed_filename}\n"
|
||||||
|
end
|
||||||
|
|
||||||
|
server.register("now_playing", get_now_playing_filepaths)
|
||||||
|
@ -180,7 +180,7 @@ class Station:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def telnet_cmd_metadata(self):
|
def telnet_cmd_metadata(self):
|
||||||
return f"{self.mount_point.replace('.', '_')}.metadata"
|
return f"now_playing"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def telnet_cmd_remaining(self):
|
def telnet_cmd_remaining(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user