Skip to content

Commit 8d33ccd

Browse files
committed
Quick fix disabling Lacros on XBox.
Thanks to @MoojMidge for the suggestions.
1 parent 06b88d3 commit 8d33ccd

File tree

1 file changed

+5
-2
lines changed
  • lib/inputstreamhelper/widevine

1 file changed

+5
-2
lines changed

lib/inputstreamhelper/widevine/arm.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
from ..kodiutils import browsesingle, localize, log, ok_dialog, open_file, progress_dialog, yesno_dialog
1111
from ..utils import diskspace, http_download, http_get, parse_version, sizeof_fmt, system_os, update_temp_path, userspace64
1212
from .arm_chromeos import ChromeOSImage
13-
from .arm_lacros import cdm_from_lacros, install_widevine_arm_lacros
13+
try:
14+
from .arm_lacros import cdm_from_lacros, install_widevine_arm_lacros
15+
except (ImportError, OSError):
16+
cdm_from_lacros = install_widevine_arm_lacros = None
1417

1518

1619
def select_best_chromeos_image(devices):
@@ -153,7 +156,7 @@ def extract_widevine_chromeos(backup_path, image_path, image_version):
153156

154157
def install_widevine_arm(backup_path):
155158
"""Wrapper for installing widevine either from Chrome browser image or Chrome OS image"""
156-
if cdm_from_lacros():
159+
if cdm_from_lacros and cdm_from_lacros():
157160
return install_widevine_arm_lacros(backup_path)
158161

159162
return install_widevine_arm_chromeos(backup_path)

0 commit comments

Comments
 (0)