000599e191
Three layout depths exist under definitions/: series/file.json (e.g. Megumin) series/character/file.json (e.g. Rem, Ram, Beatrice, Miku) series/character/variant/file.json (most themes) Counting from the end of the path produced wrong series names for the middle case. Always read the series as the first directory after 'definitions/' instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>