-
-
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
2.3.0 - check_next doesn't read metadata #3864
Comments
Hi @gAlleb, |
Hi, @vitoyucepi! Hm. So many questions then. Why it works ok in 2.2.u-name-it? Why (when using autocue2 e.g. with 2.2.u-name-it) autocue nevertheless processes files and then track gets rejected if it's not due to play? What should be done to make it work in 2.3.0? |
The behavior in 2.2.x hasn't been changed.
Try |
I've tried something like this (and a bunch of different iterations) but result is the same. def check(r)
request.uri(r)
log.critical(label="request.uri","#{request.uri(r)}")
if request.resolve(r) then
log.critical(label="request.resolve","#{request.resolve(r)}")
m = request.metadata(r)
log.critical(label="request.metadata","#{request.metadata(r)}")
if l.last(m) < 7000. then
log(level=3,"Rejecting")
false
else
l.add(m)
true
end
else
false
end
end 2024/04/08 20:30:21 [request.uri:1] /Users/(2018) - Reiki Gold 2 [320]/04. Reiki Stillness and Rest.mp3
2024/04/08 20:30:21 [request.resolve:1] true
2024/04/08 20:30:21 [request.metadata:1] [("filename", "/Users/(2018) - Reiki Gold 2 [320]/04. Reiki Stillness and Rest.mp3"), ("initial_uri", "/Users/(2018) - Reiki Gold 2 [320]/04. Reiki Stillness and Rest.mp3"), ("rid", "11532"), ("status", "ready"), ("temporary", "false")]
2024/04/08 20:30:21 [lang:3] Rejecting What am I doing wrong? |
Could be another regression. I'll have a look shortly, thanks for reporting. |
Many thanks! |
I'm trying to make
check_next
work in 2.3.0. It works ok with defaultfilename
(with no extra parameters specified). But if I want to reject tracks by title/artist/etc... - it starts looping because metadata always returns empty. Log:In 2.2.5 - All is good.
Reproduction (every 2.3.0 version - packages and opam):
The text was updated successfully, but these errors were encountered: