feat(clients): add whisparr (#218)

* feat(clients): add whisparr

* feat: add client connection test
This commit is contained in:
Ludvig Lundgren 2022-04-06 10:40:44 +02:00 committed by GitHub
parent 2f358473f3
commit 9d0ab6ea52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 338 additions and 3 deletions

View file

@ -167,6 +167,13 @@ func (s *service) runAction(action domain.Action, release domain.Release) error
return err
}
case domain.ActionTypeWhisparr:
rejections, err = s.whisparr(release, action)
if err != nil {
log.Error().Stack().Err(err).Msg("error sending torrent to whisparr")
return err
}
default:
log.Warn().Msgf("unsupported action: %v type: %v", action.Name, action.Type)
return nil