mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 22:45:09 +00:00
refactor(drm): hand the server key batch to one installer as a KeyBatch value
This commit is contained in:
@@ -122,6 +122,11 @@ def resolver(
|
||||
return ContentKeyResolver(vaults_of() if vaults is None else vaults, cdms, stand_in_service(), tag, **flags)
|
||||
|
||||
|
||||
def install_batch(source: Any, title: Any) -> None:
|
||||
"""Put the key batch of ``source`` for ``title`` on its tracks, as ``take_server_keys`` does first."""
|
||||
resolver().install_keys(source.batch_keys(title), title)
|
||||
|
||||
|
||||
def key_table() -> Table:
|
||||
"""A download table that holds the selected tracks row, as dl builds it."""
|
||||
table = Table.grid()
|
||||
|
||||
Reference in New Issue
Block a user