outd is a template

This commit is contained in:
bel
2025-04-05 00:51:30 -06:00
parent d57206357e
commit 57d9b74c31
2 changed files with 15 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ func TestRecursive(t *testing.T) {
// parse files
write("./showB/.show-ingestion.yaml", `{
"o": "`+outd+`/B",
"o": "`+outd+`/B_{{.Title}}_{{.Season}}_{{.Episode}}",
"p": []
}`)
write("./showB/title S01E02.b")
@@ -198,7 +198,7 @@ func TestRecursive(t *testing.T) {
}
exists(t, path.Join(outd, "A", "A_SAEA.a"))
exists(t, path.Join(outd, "B", "title_S01E02.b"))
exists(t, path.Join(outd, "B_title_01_02", "title_S01E02.b"))
exists(t, path.Join(outd, "C", "t_SsEe.c"))
notExists(t, path.Join(outd, "D", "title_S02E04.d"))
notExists(t, path.Join(outd, "title_S03E06.e"))