Skip to content

Commit db1d298

Browse files
fix EULA retrieval for linux/arm64 (#572)
* isort fixes * fix eula retrieval on linux/arm64
1 parent ccaa425 commit db1d298

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/inputstreamhelper/widevine/widevine.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
"""Implements generic widevine functions used across architectures"""
44

55
from __future__ import absolute_import, division, unicode_literals
6+
67
import os
78
from time import time
89

910
from .. import config
10-
from ..kodiutils import (addon_profile, exists, get_setting_int, listdir, localize, log, mkdirs,
11-
ok_dialog, open_file, set_setting, translate_path, yesno_dialog)
12-
from ..utils import arch, cmd_exists, hardlink, http_download, parse_version, remove_tree, run_cmd, system_os
11+
from ..kodiutils import (addon_profile, exists, get_setting_int, listdir,
12+
localize, log, mkdirs, ok_dialog, open_file,
13+
set_setting, translate_path, yesno_dialog)
1314
from ..unicodes import compat_path, to_unicode
15+
from ..utils import (arch, cmd_exists, hardlink, http_download, parse_version,
16+
remove_tree, run_cmd, system_os)
1417
from .arm_lacros import cdm_from_lacros, latest_lacros
1518
from .repo import cdm_from_repo, latest_widevine_available_from_repo
1619

@@ -37,7 +40,7 @@ def widevine_eula():
3740
cdm_arch = config.WIDEVINE_ARCH_MAP_REPO[arch()]
3841
else: # Grab the license from the x86 files
3942
log(0, 'Acquiring Widevine EULA from x86 files.')
40-
cdm_version = latest_widevine_version(eula=True)
43+
cdm_version = '4.10.2830.0' # fine to hardcode as it's only used for the EULA
4144
cdm_os = 'mac'
4245
cdm_arch = 'x64'
4346

@@ -156,9 +159,9 @@ def missing_widevine_libs():
156159
return None
157160

158161

159-
def latest_widevine_version(eula=False):
162+
def latest_widevine_version():
160163
"""Returns the latest available version of Widevine CDM/Chrome OS/Lacros Image."""
161-
if eula or cdm_from_repo():
164+
if cdm_from_repo():
162165
return latest_widevine_available_from_repo().get('version')
163166

164167
if cdm_from_lacros():

0 commit comments

Comments
 (0)