Skip to content

Commit d9f265d

Browse files
authored
feat: add --songs flag to recoup content create command (#19)
Accepts comma-separated song slugs (e.g. --songs hiccups,adhd) to restrict which songs the content pipeline picks from. Made-with: Cursor
1 parent 8746ebf commit d9f265d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/commands/content/createCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const createCommand = new Command("create")
1414
.option("--caption-length <length>", "Caption length: short, medium, long", "short")
1515
.option("--upscale", "Upscale image and video for higher quality")
1616
.option("--batch <count>", "Generate multiple videos in parallel", "1")
17+
.option("--songs <slugs>", "Comma-separated song slugs to pick from (e.g. hiccups,adhd)")
1718
.option("--json", "Output as JSON")
1819
.action(async opts => {
1920
try {
@@ -22,13 +23,18 @@ export const createCommand = new Command("create")
2223
throw new Error("--caption-length must be one of: short, medium, long");
2324
}
2425

26+
const songs: string[] | undefined = opts.songs
27+
? (opts.songs as string).split(",").map((s: string) => s.trim()).filter(Boolean)
28+
: undefined;
29+
2530
const data = await post("/api/content/create", {
2631
artist_account_id: opts.artist,
2732
template: opts.template,
2833
lipsync: !!opts.lipsync,
2934
caption_length: opts.captionLength,
3035
upscale: !!opts.upscale,
3136
batch,
37+
...(songs && { songs }),
3238
});
3339

3440
if (opts.json) {

0 commit comments

Comments
 (0)