torrent pushes to outdir:XYZ if category/tag set

This commit is contained in:
Bel LaPointe
2024-07-30 16:54:55 -06:00
parent 5fa2068548
commit bf50e61f8d
2 changed files with 45 additions and 18 deletions

View File

@@ -257,3 +257,12 @@ func TestFindMagnets(t *testing.T) {
}
}
}
func Test__PullOutput(t *testing.T) {
if got := __pullOutput("x", "y", &gofeed.Item{Categories: []string{}}); got != "x/y" {
t.Error(got)
}
if got := __pullOutput("", "", &gofeed.Item{Categories: []string{"outdir:x"}}); got != "x" {
t.Error(got)
}
}