polyamspace / mastodon

Custom Mastodon fork used by https://polyam.space
GNU Affero General Public License v3.0
1 stars 2 forks source link

Fix ffmpeg version check #590

Closed polyamAdmin closed 3 weeks ago

polyamAdmin commented 3 weeks ago

Follow-up to #588 (4a5442edaa5d598eea969ac023dc394761f38d7b)

ffmpeg -version can output versions that differ from a simple number version, which throws a NoMethodError and results in the component not loading.

Instead match any version string that could be returned.

polyamAdmin commented 3 weeks ago

Overall the version checks are extremely brittle, but for a "quick fix" this should be enough. ~This would still likely fail with some ffmpeg versions~ This now works with every ffmpeg version I could find.