Syntax error #4356
Replies: 15 comments 5 replies
-
Hi @berni13400, |
Beta Was this translation helpful? Give feedback.
-
hello, I speak English very poorly and use the translator, I am attaching the code of my radio.liq file which works very well on my old server but causes problems on the new one, I do not think that its syntax is bad, I think that the problem is elsewhere in the installation. Sincerely |
Beta Was this translation helpful? Give feedback.
-
I think the problem is near the schedule = switch([
({6h-10h}, day),
({(1w or 3w or 5w or 7w) and 10h-11h}, jazz),
({(2w or 4w or 6w) and 10h-11h}, jazzManou),
({7w10h-7w11h}, Reggae),
({11h-16h}, day),
({(1w or 3w or 5w) and 16h-17h}, rock), # 7w?
({(2w or 4w or 6w) and 16h-17h}, rock_60_70),
({7w16h-7w17h}, country),
({17h-18h}, nouvArt),
({18h-18h30m}, day),
({18h30m-19h30m}, mouveaute),
({19h30m-21h}, day),
({1w21h-1w24h}, lundi_soir),
({2w21h-2w24h}, mardi_soir),
({3w21h-3w24h}, mercredi_soir),
({4w21h-4w24h}, jeudi_soir),
({5w21h-5w24h}, vendredi_soir),
({6w21h-6w24h}, samedi_soir),
({7w21h-7w24h}, dimanche_soir),
({(2w or 4w or 6w) and 0h-6h}, night),
({(1w or 3w or 5w) and 0h-6h}, night2), # 7w?
])
requests_queue = request.queue(id="request")
# Maybe split into two fallbacks and use track_sensitive=false?
radio = fallback([requests_queue, schedule, default]) |
Beta Was this translation helpful? Give feedback.
-
I modified and now I get the following error: Error 4: Undefined variable radio |
Beta Was this translation helpful? Give feedback.
-
Sorry, |
Beta Was this translation helpful? Give feedback.
-
Thanks, now it's the following error: Error 4: Undefined variable crossfade_3s and if I comment out the line I get the following error for the last line: Error 2: Parse error |
Beta Was this translation helpful? Give feedback.
-
Just a lot of mistakes def crossfade_3s(a, b)
add([fade.in(duration=3., b), fade.out(duration=3., a)], normalize=false)
end # Information de diffusion
output.shoutcast(
%mp3,
name="Playlist-radioslm",
url="http://radioslm.fr/suite/test_slm/",
port=8052,
password="******",
radio
)
# Information de diffusion
output.shoutcast(
%mp3,
name="Playlist-radioSlm",
url="http://www.radioslm.fr/",
port=8000,
password="*******",
radio
) |
Beta Was this translation helpful? Give feedback.
-
At radio.liq, line 107, char 0-3: Error 2: Parse error If comment then: Error 2: Parse error |
Beta Was this translation helpful? Give feedback.
-
Could you upload the current version of the script? |
Beta Was this translation helpful? Give feedback.
-
Hello last night liquidsoap had a bug running in a loop on the security mp3 alternating with the advertising jingles, I tried to restart liquidsoap which gave me the following messages: " [mp3 @ 0x7ff2a8048040] Estimating duration from bitrate, this may be inaccurate |
Beta Was this translation helpful? Give feedback.
-
Indeed, we note suspicious activity during the period of the bug causing errors in shoutcasts, this looks very much like a hacking attempt in my opinion! given the size I only put the period in question of the logs: |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your responsiveness, I will monitor all of this and if it happens again we will open a new discussion. |
Beta Was this translation helpful? Give feedback.
-
Hello, I think I found the cause of the weekend bug from 00h to 6h in this line: ({(1w or 3w or 5w) and 0h-6h}, night2), # 7w? |
Beta Was this translation helpful? Give feedback.
-
I looked at my script and saw that nothing specified the folder to play on Sunday (7w) from midnight to 6am, so obviously not finding a folder to play it went to the security music! |
Beta Was this translation helpful? Give feedback.
-
Description
Hello, I have re-installed Liquidsoap on a new Debian 12 server and I encounter syntax errors on my radio.liq file which works well on my old installation "liquidsoap 1.4.3-3", on the new one it is 2.1.3-2 and I encounter syntax errors almost on every line, ex: At line 70, char 0-3:
Error 3: Syntax error!
Except the 3 characters are def, it is a word used in the examples.
Steps to reproduce
I encounter syntax errors almost on every line, ex: At line 70, char 0-3:
Error 3: Syntax error!
Except the 3 characters are def, it is a word used in the examples.
Expected behavior
I encounter syntax errors almost on every line, ex: At line 70, char 0-3:
Error 3: Syntax error!
Except the 3 characters are def, it is a word used in the examples.
Liquidsoap version
Liquidsoap build config
Installation method
From OPAM
Additional Info
No response
Beta Was this translation helpful? Give feedback.
All reactions