-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Adjust ffmpeg version detection in admin panel #31130
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
Adjust ffmpeg version detection in admin panel #31130
Conversation
I'm not sure why we should ignore anything that isn't strictly point-separated numerics, https://superuser.com/a/1609819 gives an interesting reply regarding how to cleanly parse There are also things that I'm not sure how I missed when reviewing #30710:
|
4b9873e
to
d2dfded
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements!
I think you also need to update the rescue
statement to something like rescue Terrapin::CommandNotFoundError, Terrapin::ExitStatusError
.
And I again think nightly and such versions should be reported instead of displaying 0.0.0
. The code suggestion should do it. If you accept it, you should also add Oj:ParseError
to the rescue line.
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
9275ce4
to
56d15a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rescue
statement a few lines below still needs to be changed to rescue Terrapin::CommandNotFoundError, Terrapin::ExitStatusError, Oj::ParseError
Perfect, I was literally about to message you and ask if this was the appropriate rescue block 🤣 |
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
The static builds linked off of ffmpeg.org use a non-X.Y.Z format that the previous regex was failing on. This looks for number format or the next block of text instead of matching the number format. If neither function it'll return 0.0.0.