Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
fix(video-loop-repair): a source manifest whose recipe key is not a string gives no key again, as before KEY_TARGETS was the set it is checked against
Soohong Kim18c00e57aee2
diff --git a/sprite_gen/video/restoration.py b/sprite_gen/video/restoration.pyindex 927c3b1..0e13676 100644--- a/sprite_gen/video/restoration.py+++ b/sprite_gen/video/restoration.py@@ -107,7 +107,7 @@ def _source_key(src: source.Source) -> str | None:key = src.record["recipe"].get("key")if key == "auto":key = (src.record["recipe"].get("spill") or {}).get("key")- return key if key in KEY_TARGETS else None+ return key if isinstance(key, str) and key in KEY_TARGETS else Nonedef source_key_weight(cropped: Image.Image, size: tuple[int, int], key: str) -> Any: