Skip to content

Open-source alternative to Opus Clip, Vidyo.ai, Klap & SubMagic. Turn long-form YouTube videos into viral 9:16 shorts using LLM highlight detection, Whisper transcription, and auto vertical cropping — free, no watermarks, no per-clip credits.

fix: handle 'outputs' list in MuAPI response

Anil Matcha47b86746d050
diff --git a/shorts_generator/downloader.py b/shorts_generator/downloader.py
index 7462763..5037e51 100644
--- a/shorts_generator/downloader.py
+++ b/shorts_generator/downloader.py
@@ -11,6 +11,15 @@ def _extract_video_url(result: Dict) -> str:
if isinstance(v, str) and v.startswith("http"):
return v
+ outputs = result.get("outputs")
+ if isinstance(outputs, list) and outputs and isinstance(outputs[0], str) and outputs[0].startswith("http"):
+ return outputs[0]
+ if isinstance(outputs, dict):
+ for key in ("video_url", "url", "output_url"):
+ v = outputs.get(key)
+ if isinstance(v, str) and v.startswith("http"):
+ return v
+
output = result.get("output") or result.get("result") or {}
if isinstance(output, dict):
for key in ("video_url", "url", "output_url"):