From 75641bc8ee27b103e35654f8af7db60243bbb4c0 Mon Sep 17 00:00:00 2001 From: Arias800 <24809312+Arias800@users.noreply.github.com> Date: Tue, 27 Feb 2024 23:48:54 +0100 Subject: [PATCH] Add default shaka-packager build name (#74) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the user build Shaka-packager manually, the default name will be “packager”. Adding it to the list will ensure that Devine detects the app in this situation. --- devine/core/drm/widevine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/drm/widevine.py b/devine/core/drm/widevine.py index b391e05..19be6e8 100644 --- a/devine/core/drm/widevine.py +++ b/devine/core/drm/widevine.py @@ -224,7 +224,7 @@ class Widevine: raise ValueError("Cannot decrypt a Track without any Content Keys...") platform = {"win32": "win", "darwin": "osx"}.get(sys.platform, sys.platform) - executable = get_binary_path("shaka-packager", f"packager-{platform}", f"packager-{platform}-x64") + executable = get_binary_path("shaka-packager", "packager", f"packager-{platform}", f"packager-{platform}-x64") if not executable: raise EnvironmentError("Shaka Packager executable not found but is required.") if not path or not path.exists():