Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix disabling Lacros on XBox. #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/inputstreamhelper/widevine/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
from ..kodiutils import browsesingle, localize, log, ok_dialog, open_file, progress_dialog, yesno_dialog
from ..utils import diskspace, http_download, http_get, parse_version, sizeof_fmt, system_os, update_temp_path, userspace64
from .arm_chromeos import ChromeOSImage
from .arm_lacros import cdm_from_lacros, install_widevine_arm_lacros
try:
from .arm_lacros import cdm_from_lacros, install_widevine_arm_lacros
except (ImportError, OSError):
cdm_from_lacros = install_widevine_arm_lacros = None


def select_best_chromeos_image(devices):
Expand Down Expand Up @@ -153,7 +156,7 @@ def extract_widevine_chromeos(backup_path, image_path, image_version):

def install_widevine_arm(backup_path):
"""Wrapper for installing widevine either from Chrome browser image or Chrome OS image"""
if cdm_from_lacros():
if cdm_from_lacros and cdm_from_lacros():
return install_widevine_arm_lacros(backup_path)

return install_widevine_arm_chromeos(backup_path)
Loading