mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
Feature: Exec action (#7)
* feat: implement exec action * chore: change logs to trace * refactor: extract from action
This commit is contained in:
parent
4c19187a2f
commit
9eccc6b5e2
8 changed files with 340 additions and 157 deletions
|
@ -66,8 +66,7 @@ func (s *service) Process(announce domain.Announce) error {
|
|||
hash := meta.HashInfoBytes().String()
|
||||
|
||||
// take action (watchFolder, test, runProgram, qBittorrent, Deluge etc)
|
||||
// actionService
|
||||
err = s.actionSvc.RunActions(res.FileName, hash, *announce.Filter)
|
||||
err = s.actionSvc.RunActions(res.FileName, hash, *announce.Filter, announce)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msgf("error running actions for filter: %v", announce.Filter.Name)
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue