Skip to content

Commit 16016ae

Browse files
Explicitly check for libwidevinecdm.so
1 parent 3d9825a commit 16016ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/inputstreamhelper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ def _extract_cdm_from_img(self):
402402
"""Extract the Widevine CDM binary from the mounted Chrome OS image."""
403403
for root, dirs, files in os.walk(self._mnt_path()):
404404
for filename in files:
405-
if 'widevinecdm' in filename and filename.endswith(config.CDM_EXTENSIONS):
406-
shutil.copyfile(os.path.join(root, filename), os.path.join(self._cdm_path(), filename))
407-
return True
405+
if filename == 'libwidevinecdm.so'
406+
shutil.copyfile(os.path.join(root, filename), os.path.join(self._cdm_path(), filename))
407+
return True
408408

409409
self._log('Failed to find Widevine CDM binary in Chrome OS image.')
410410
return False

0 commit comments

Comments
 (0)