-fixed liquidsoap not working when the liquidsoap global libraries were not installed
This commit is contained in:
parent
277095a538
commit
692ba3513b
23 changed files with 908 additions and 50 deletions
13
pypo/scripts/library/ask-liquidsoap.rb
Executable file
13
pypo/scripts/library/ask-liquidsoap.rb
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
require 'net/telnet'
|
||||
|
||||
liq_host = "localhost"
|
||||
liq_port = 1234
|
||||
|
||||
conn = Net::Telnet::new("Host" => liq_host, "Port" => liq_port)
|
||||
|
||||
conn.puts(ARGV[0])
|
||||
conn.waitfor("Match" => /^END$/) do |data|
|
||||
puts data.sub(/\nEND\n/,"")
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue