Update CLI docs and remove unused DRM key logic

Expanded README with detailed CLI usage instructions and examples. Removed unused DRM key fetching logic and the get_missing_keys function from main.py and utilities.py to clean up the codebase.
This commit is contained in:
√(noham)²
2025-12-20 11:47:23 +01:00
parent 5dc55dbf62
commit 0f0fb975a6
3 changed files with 42 additions and 53 deletions

View File

@@ -15,21 +15,6 @@ def verify_cmd(path: str) -> bool:
return True
def get_missing_keys(keys, selection):
"""Determine which DRM keys are missing based on user selection."""
missing_keys = []
for drm_info in [
selection["video"]["drm_info"],
selection["audio"]["drm_info"],
]:
for drm in drm_info:
if "default_KID" in drm:
kid = drm["default_KID"].replace("-", "").lower()
if kid not in [k.split(":")[0] for k in keys]:
missing_keys.append(kid)
return missing_keys
def merge_segments(input_folder: str, track_id: str, output_file: str):
"""Merge downloaded segments into a single file using ffmpeg."""
segment_folder = os.path.join(input_folder, f"segments_{track_id}")