-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_next
is evaluated after request resolution
#3625
Comments
check_next
evaluated after request resolutioncheck_next
is evaluated after request resolution
Thanks for sumbitting. I have changed the order of operations. This is too big of a change to go into a bugfix release, however. |
Hi @toots, |
@vitoyucepi do you have a specific example in mind? |
settings.log.level := 3
def is_audio(_request)
name = request.uri(_request)
mime = file.mime(name)
if mime == null() then
false
else
mime = null.get(mime)
if string.contains(mime, prefix="audio") then
true
else
false
end
end
end
s = mksafe(playlist("/tmp/test/playlist.m3u", mode="normal", check_next=is_audio))
s = clock(sync="none", s)
output.dummy(s) I'd like to check if the file is
|
Describe the bug
The
playlist.list
function describes thecheck_next
parameter as followsBut in reality, it's done after resolution.
liquidsoap/src/libs/playlist.liq
Lines 361 to 410 in e536a57
To Reproduce
compose.yaml
main.liq
Expected behavior
I'd like to use
check_next
to prevent resolution of image or garbage files before they are decoded.Version details
Install method
savonet/liquidsoap:v2.2.3
Common issues
N/A
The text was updated successfully, but these errors were encountered: