github devine-dl/pywidevine v1.3.0

latest releases: v1.8.0, v1.7.0, v1.6.0...
2 years ago
  • Supported Serve API: v1.3.0 to v1.3.1

Added

  • New Client for using the Serve API; RemoteCdm class. It has an identical interface as the original Cdm class.
    • However, the constructor is different. Instead of passing a Widevine device object, you need to pass information
      about the API like its host (including port if not on a reverse-proxy), and info about the device like its name and
      security level.
    • Other than that, once the RemoteCdm object is created, you use it exactly the same. Magic!
    • Any time there's a change or fix to Cdm in this update or any in the future, will also be done to RemoteCdm.
  • New Serve endpoint /set_service_certificate as an improved way of setting (or unsetting) the service certificate.

Changed

  • Cdms constructor now uses more direct values, so you don't have to use the Device class or .wvd files.
    • To continue using .wvd files you must now use Cdm.from_device() instead.
  • You can now unset the Service certificate by providing None to `Cdm.set_service_certificate().

Removed

  • Serve's /challenge endpoint no longer accepts a service_certificate item in the JSON payload.
    • Instead, use the new /set_service_certificate endpoint before calling /challenge.
    • You do not need to set it every time. Once per session is enough unless you now want to use a different certificate.

Don't miss a new pywidevine release

NewReleases is sending notifications on new releases.