Feature: Lidarr (#15)

* feat(web): add lidarr download client

* feat: add lidarr download client
This commit is contained in:
Ludvig Lundgren 2021-08-22 02:17:13 +02:00 committed by GitHub
parent fce6c7149a
commit e6cfc77e85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 582 additions and 15 deletions

View file

@ -80,6 +80,13 @@ func (s *service) RunActions(torrentFile string, hash string, filter domain.Filt
log.Error().Err(err).Msg("error sending torrent to sonarr")
}
}()
case domain.ActionTypeLidarr:
go func() {
err := s.lidarr(announce, action)
if err != nil {
log.Error().Err(err).Msg("error sending torrent to lidarr")
}
}()
default:
log.Warn().Msgf("unsupported action: %v type: %v", action.Name, action.Type)