Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support duplicated SignedMessages in Cdm.set_service_certificate
Fixes #41 Seems some services like TF1 (France) returns a SignedMessage twice in one response body by mistake, resulting in a partial parse decoding error as pywidevine doesn't expect the parsed-then-serialized data to differ from the received data. This workaround checks if the parsed-then-serialized data is in the received data multiple times without any leftover data. If there's no leftover data it considers it safe to continue.
- Loading branch information