feat(cdm): Update User-Agent to use dynamic version

- Replace hardcoded version "1.0" with dynamic version import in DecryptLabsRemoteCDM User-Agent header.
This commit is contained in:
Andy
2025-09-09 03:49:01 +00:00
parent 5f022635cb
commit 859d09693c

View File

@@ -11,6 +11,7 @@ from pywidevine.device import DeviceTypes
from requests import Session
from unshackle.core.vaults import Vaults
from unshackle.core import __version__
class MockCertificateChain:
@@ -150,7 +151,7 @@ class DecryptLabsRemoteCDM:
{
"decrypt-labs-api-key": self.secret,
"Content-Type": "application/json",
"User-Agent": "unshackle-decrypt-labs-cdm/1.0",
"User-Agent": f"unshackle-decrypt-labs-cdm/{__version__}",
}
)