mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
Feature: Sonarr (#14)
* feat: add sonarr download client * feat(web): add sonarr download client and actions * feat: add sonarr to filter actions
This commit is contained in:
parent
455284a94b
commit
fce6c7149a
15 changed files with 594 additions and 5 deletions
|
@ -73,6 +73,14 @@ func (s *service) RunActions(torrentFile string, hash string, filter domain.Filt
|
|||
}
|
||||
}()
|
||||
|
||||
case domain.ActionTypeSonarr:
|
||||
go func() {
|
||||
err := s.sonarr(announce, action)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("error sending torrent to sonarr")
|
||||
}
|
||||
}()
|
||||
|
||||
default:
|
||||
log.Warn().Msgf("unsupported action: %v type: %v", action.Name, action.Type)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue