forked from kenzuya/unshackle
refactor(monalisa): remove ML-Worker and improve MonaLisa DRM
- Remove ML-Worker binary and legacy decryption logic from core - Add tool_path injection and CLI subprocess runner in MonaLisa - Make MonaLisa format-agnostic (support both segment & single track)
This commit is contained in:
@@ -14,12 +14,10 @@ import re
|
||||
import sys
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
from typing import Dict, Optional, Union
|
||||
from typing import Dict, Union
|
||||
|
||||
import wasmtime
|
||||
|
||||
from unshackle.core import binaries
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -93,13 +91,6 @@ class MonaLisaCDM:
|
||||
self.exports = {}
|
||||
self.ctx = None
|
||||
|
||||
@staticmethod
|
||||
def get_worker_path() -> Optional[Path]:
|
||||
"""Get ML-Worker binary path from the unshackle binaries system."""
|
||||
if binaries.ML_Worker:
|
||||
return Path(binaries.ML_Worker)
|
||||
return None
|
||||
|
||||
def open(self) -> int:
|
||||
"""
|
||||
Open a CDM session.
|
||||
|
||||
Reference in New Issue
Block a user