create torrent handler

Former-commit-id: dc7a0cbdbbf2ddc985f5581e740ba59a9c18aff0
This commit is contained in:
Bel LaPointe
2019-06-25 09:49:50 -06:00
parent 22809d9167
commit 46fe312222
6 changed files with 480 additions and 33 deletions

View File

@@ -41,12 +41,5 @@ func (h *Handler) Job(key string) error {
if err := f.Pull(); err != nil {
return err
}
for _, tag := range f.Tags {
if foo := ByTag(tag); foo != nil {
if err := foo(key); err != nil {
return err
}
}
}
return nil
}