Help in creating conditional source ! #1899
Answered
by
smimram
Russsgithub
asked this question in
Q&A
-
If I create a conditional source with this code -
I get this error
at the first line of this code. If I use the same input either http or harbor in both if and else outcomes all is well, the script runs. ? |
Beta Was this translation helpful? Give feedback.
Answered by
smimram
Oct 6, 2021
Replies: 2 comments
-
I would convert those as
Also it should work better with current Liquidsoap from git. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Russsgithub
-
Cool, Thanks Sam, I'll give it ago.
On 6 Oct 2021 20:57, Samuel Mimram ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1899 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB627QNBZLHZEYBEAESTVULUFSSZNANCNFSM5D27BJKA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would convert those as
sources
explicitely, something like:Also it should work better with current Liquidsoap from git.