mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +00:00
fix(binaries): report a version for git ffmpeg builds
Dated builds (N-<rev>-g<hash>-YYYYMMDD, YYYY-MM-DD-git-<hash>, shallow-clone git-YYYY-MM-DD-<hash>) report YYYYMMDD; undated ones N-<rev>.
This commit is contained in:
@@ -13,8 +13,13 @@ from unshackle.core.binaries import binary_version, parse_version, probe_output
|
||||
("text", "expected"),
|
||||
[
|
||||
("ffmpeg version n9.0.1-11-ge47273f4d9 Copyright (c) 2000-2026\nbuilt with gcc 15.2.0", "9.0.1"),
|
||||
("ffmpeg version 2024-03-07-git-97beb63a66-full_build\n built with gcc 12.2.0", None),
|
||||
("ffmpeg version N-113672-g1e2a6dbb46-20240307\n built with gcc 13.2.0", None),
|
||||
("ffmpeg version 2024-03-07-git-97beb63a66-full_build\n built with gcc 12.2.0", "20240307"),
|
||||
("ffmpeg version N-113672-g1e2a6dbb46-20240307\n built with gcc 13.2.0", "20240307"),
|
||||
("ffprobe version N-119416-g1dbc5675c1-20250503 Copyright (c) 2007-2025", "20250503"),
|
||||
("ffmpeg version N-113672-g1e2a6dbb46 Copyright (c) 2000-2024", "N-113672"),
|
||||
("ffmpeg version N-128263-g9f9b9548583-tessus Copyright (c) 2000-2026", "N-128263"),
|
||||
("ffmpeg version N-71064-gd5e603ddc0-static Copyright (c) 2000-2024", "N-71064"),
|
||||
("ffmpeg version git-2026-11-02-b034eb5 Copyright (c) 2000-2026", "20261102"),
|
||||
("packager-linux-x64 version v2.6.1-634af65-release", "2.6.1"),
|
||||
("MP4 Decrypter - Version 1.4\n(Bento4 Version 1.6.0.0)", "1.4"),
|
||||
("mkvmerge v88.0 ('All I Know') 64-bit", "88.0"),
|
||||
|
||||
Reference in New Issue
Block a user