Skip to content

Help in creating conditional source ! #1899

Answered by smimram
Russsgithub asked this question in Q&A
Discussion options

You must be logged in to vote

I would convert those as sources explicitely, something like:

input = if !toggle then
        (input.harbor("test", port=9000, password="hackme") : source)
      else
        (input.http(poll_delay=10.,max_buffer=!input_buffer,"#{stream_url}") : source)
      end

Also it should work better with current Liquidsoap from git.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Russsgithub
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants