mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(radio): opus streams
This commit is contained in:
@@ -76,33 +76,20 @@ in {
|
|||||||
)))
|
)))
|
||||||
end
|
end
|
||||||
|
|
||||||
output.icecast(
|
def make_streams(name, audio, ~description, ~genre) =
|
||||||
mount = '/lyrikline.ogg',
|
output.icecast(%vorbis, audio, mount = name ^ ".ogg", genre = genre, description = description,
|
||||||
port = ${toString config.services.icecast.listen.port},
|
port = ${toString config.services.icecast.listen.port},
|
||||||
password = "${icecastPassword}",
|
password = "${icecastPassword}",
|
||||||
description = "lyrikline. listen to the poet (unofficial)",
|
)
|
||||||
%vorbis,
|
output.icecast(%opus, audio, mount = name ^ ".opus", genre = genre, description = description,
|
||||||
random_url("${lyrikline-poem}")
|
port = ${toString config.services.icecast.listen.port},
|
||||||
)
|
password = "${icecastPassword}",
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
output.icecast(
|
make_streams("lyrikline", random_url("${lyrikline-poem}"), description="lyrikline. listen to the poet (unofficial)", genre="poetry")
|
||||||
mount = '/lyrik.ogg',
|
make_streams("lyrik", random_url("${stavenhagen-poem}"), description="Fritz Stavenhagen – Lyrik für alle | www.deutschelyrik.de", genre="poetry")
|
||||||
port = ${toString config.services.icecast.listen.port},
|
make_streams("wikipedia", random_url("${wikipedia-article}"), description="Zufällige Artikel von Wikipedia", genre="useless knowledge")
|
||||||
password = "${icecastPassword}",
|
|
||||||
description = "Lyrik für alle – Neue Lust auf Lyrik | www.deutschelyrik.de",
|
|
||||||
%vorbis,
|
|
||||||
random_url("${stavenhagen-poem}")
|
|
||||||
)
|
|
||||||
|
|
||||||
output.icecast(
|
|
||||||
mount = '/wikipedia.ogg',
|
|
||||||
port = ${toString config.services.icecast.listen.port},
|
|
||||||
password = "${icecastPassword}",
|
|
||||||
description = "Zufällige Artikel von Wikipedia",
|
|
||||||
genre = "useless knowledge",
|
|
||||||
%vorbis,
|
|
||||||
random_url("${wikipedia-article}")
|
|
||||||
)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.services.radio.environment.TMPDIR = liquidsoapDirectory;
|
systemd.services.radio.environment.TMPDIR = liquidsoapDirectory;
|
||||||
|
|||||||
Reference in New Issue
Block a user