3
3
"""Implements generic widevine functions used across architectures"""
4
4
5
5
from __future__ import absolute_import , division , unicode_literals
6
+
6
7
import os
7
8
from time import time
8
9
9
10
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 )
13
14
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 )
14
17
from .arm_lacros import cdm_from_lacros , latest_lacros
15
18
from .repo import cdm_from_repo , latest_widevine_available_from_repo
16
19
@@ -37,7 +40,7 @@ def widevine_eula():
37
40
cdm_arch = config .WIDEVINE_ARCH_MAP_REPO [arch ()]
38
41
else : # Grab the license from the x86 files
39
42
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
41
44
cdm_os = 'mac'
42
45
cdm_arch = 'x64'
43
46
@@ -156,9 +159,9 @@ def missing_widevine_libs():
156
159
return None
157
160
158
161
159
- def latest_widevine_version (eula = False ):
162
+ def latest_widevine_version ():
160
163
"""Returns the latest available version of Widevine CDM/Chrome OS/Lacros Image."""
161
- if eula or cdm_from_repo ():
164
+ if cdm_from_repo ():
162
165
return latest_widevine_available_from_repo ().get ('version' )
163
166
164
167
if cdm_from_lacros ():
0 commit comments