torrent pushes to outdir:XYZ if category/tag set
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user