feat(drm)!: load DRM systems beyond the built-ins from plugins in directories.plugins

This commit is contained in:
imSp4rky
2026-12-03 15:51:42 -07:00
parent f8a248a29e
commit e9adc50594
65 changed files with 1651 additions and 2526 deletions
+3 -1
View File
@@ -231,7 +231,9 @@ accepted URL/ID formats and options there.
`is_widevine_cdm()` / `is_playready_cdm()` from `unshackle.core.cdm.detect`
to classify it. These work correctly for local *and* remote CDMs, so never
hand-roll an `isinstance` check. Services often pick a device profile or
manifest endpoint based on which DRM the CDM speaks.
manifest endpoint based on which DRM the CDM speaks. A service whose DRM
plugin licenses locally gets its device from `ctx.obj.cdm_for("<plugin id>")`.
`ctx.obj.cdm_for` is `None` where nothing licenses, for example in a search.
### `authenticate`: optional login