99 kodi_to_ascii , kodi_version , listdir , localize , log , notification , ok_dialog , progress_dialog , select_dialog ,
1010 set_setting , set_setting_bool , textviewer , translate_path , yesno_dialog )
1111from .utils import arch , download_path , http_download , parse_version , remove_tree , system_os , temp_path , unzip , userspace64
12- from .widevine .arm import dl_extract_widevine_chromeos , extract_widevine_chromeos , install_widevine_arm
13- from .widevine .arm_lacros import cdm_from_lacros
12+ from .widevine .arm import dl_extract_widevine_chromeos , extract_widevine_chromeos , install_widevine_arm_chromeos
1413from .widevine .widevine import (backup_path , has_widevinecdm , ia_cdm_path ,
1514 install_cdm_from_backup , latest_widevine_version ,
1615 load_widevine_config , missing_widevine_libs , widevine_config_path ,
@@ -227,7 +226,7 @@ def install_widevine(self, choose_version=False):
227226 else :
228227 if choose_version :
229228 log (1 , "Choosing a version to install is only implemented if the lib is found in googles repo." )
230- result = install_widevine_arm (backup_path ())
229+ result = install_widevine_arm_chromeos (backup_path ())
231230 if not result :
232231 return result
233232
@@ -296,7 +295,7 @@ def _first_run():
296295
297296 @staticmethod
298297 def get_current_wv ():
299- """Returns which component is used (widevine/chromeos/lacros ) and the current version"""
298+ """Returns which component is used (widevine/chromeos) and the current version"""
300299 wv_config = load_widevine_config ()
301300 component = 'Widevine CDM'
302301 current_version = '0'
@@ -305,12 +304,6 @@ def get_current_wv():
305304 log (3 , 'Widevine config missing. Could not determine current version, forcing update.' )
306305 elif cdm_from_repo ():
307306 current_version = wv_config ['version' ]
308- elif cdm_from_lacros ():
309- component = 'Lacros image'
310- try :
311- current_version = wv_config ['img_version' ] # if lib was installed from chromeos image, there is no img_version
312- except KeyError :
313- pass
314307 else :
315308 component = 'Chrome OS'
316309 current_version = wv_config ['version' ]
@@ -481,9 +474,7 @@ def info_dialog(self):
481474 text += localize (30821 , version = self ._get_lib_version (widevinecdm_path ()), date = wv_updated ) + '\n '
482475 if not cdm_from_repo ():
483476 wv_cfg = load_widevine_config ()
484- if wv_cfg and cdm_from_lacros (): # Lacros image version
485- text += localize (30825 , image = "Lacros" , version = wv_cfg ['img_version' ]) + '\n '
486- elif wv_cfg : # Chrome OS version
477+ if wv_cfg : # Chrome OS version
487478 text += localize (30822 , name = wv_cfg ['hwidmatch' ].split ()[0 ].lstrip ('^' ), version = wv_cfg ['version' ]) + '\n '
488479 if get_setting_float ('last_check' , 0.0 ):
489480 wv_check = strftime ('%Y-%m-%d %H:%M' , localtime (get_setting_float ('last_check' , 0.0 )))
0 commit comments