Skip to content

Fix TypeError when widevine manifest lacks architecture metadata - #652

Open
drake127 wants to merge 1 commit into
emilsvennesson:masterfrom
drake127:fix-manifest-arch-typeerror
Open

drake127 wants to merge 1 commit into
emilsvennesson:masterfrom
drake127:fix-manifest-arch-typeerror

Conversation

@drake127

Copy link
Copy Markdown

When using a system/distribution-provided Widevine CDM (e.g. Debian/Raspberry Pi OS libwidevinecdm0 package where cdm_from_repo() is True), the manifest.json does not contain ChromeOS-specific 'accept_arch', 'platforms', or 'arch' keys. In this case, load_widevine_config() returns a dict without arch info and wv_config_arch resolves to None. Evaluating ... not in None raised:
TypeError: argument of type 'NoneType' is not iterable
Add a null check so that architecture verification is safely skipped when no arch metadata is present in the manifest.

When using a system/distribution-provided Widevine CDM (e.g. Debian/Raspberry
Pi OS libwidevinecdm0 package where cdm_from_repo() is True), the manifest.json
does not contain ChromeOS-specific 'accept_arch', 'platforms', or 'arch' keys.
In this case, load_widevine_config() returns a dict without arch info and
wv_config_arch resolves to None. Evaluating `... not in None` raised:
  TypeError: argument of type 'NoneType' is not iterable
Add a null check so that architecture verification is safely skipped when
no arch metadata is present in the manifest.
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant