I set up a liquidsoap script for our radio station. Most things work really
fine.
We use a input.harbor with authentication for our moderators
#Moderatoren Authentifizierung
def harbor_auth(port,user,password) =
(port == 8080 and user == "user1" and password == "pass1") or
(port == 8080 and user == "user2" and password == "pass2")
end
auth1 = harbor_auth(8080)
#Live Moderatoren Harbor
moderator = input.harbor(id="Mod
Harbor",port=8080,auth=auth1,icy=true,dumpfile="/path/to/recorded/dumps/$(user)_$(timestamp)-%m-%d-%Y-%H:%M:%S.mp3","modi")
output.dummy(id="Mod Dummy",fallible=true, moderator)
Each connection of a moderator schould create a dump file for our archive.
Is there a way to get the current username from the authentication in a
variable to use it in the dump function of the input.harbor? Also tagged with a
timestamp? So that the files are stored according to moderator and time?
My current script write the file in exactly that string i used in code above.
I tryed several ways to get the right syntax, but nothing worked.
For help, I would be grateful :)
Liquidsoap verison 1.3.3 on a ubuntu 14.04 dedicated server.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/661
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users