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:
CodeName393
2026-09-02 22:26:47 +09:00
committed by GitHub
parent 13fc47546f
commit 83ebe81386
4 changed files with 80 additions and 109 deletions
+1 -10
View File
@@ -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.