mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(indexers-irc): load new values on update (#274)
* fix(indexers-irc): reload config on restart * fix(indexers-irc): reload config * fix: indexer add form
This commit is contained in:
parent
45053d9823
commit
2903e7b493
6 changed files with 46 additions and 55 deletions
|
@ -20,14 +20,14 @@ type Processor interface {
|
|||
}
|
||||
|
||||
type announceProcessor struct {
|
||||
indexer domain.IndexerDefinition
|
||||
indexer *domain.IndexerDefinition
|
||||
|
||||
releaseSvc release.Service
|
||||
|
||||
queues map[string]chan string
|
||||
}
|
||||
|
||||
func NewAnnounceProcessor(releaseSvc release.Service, indexer domain.IndexerDefinition) Processor {
|
||||
func NewAnnounceProcessor(releaseSvc release.Service, indexer *domain.IndexerDefinition) Processor {
|
||||
ap := &announceProcessor{
|
||||
releaseSvc: releaseSvc,
|
||||
indexer: indexer,
|
||||
|
@ -166,7 +166,7 @@ func (a *announceProcessor) parseExtract(pattern string, vars []string, tmpVars
|
|||
}
|
||||
|
||||
// onLinesMatched process vars into release
|
||||
func (a *announceProcessor) onLinesMatched(def domain.IndexerDefinition, vars map[string]string, rls *domain.Release) error {
|
||||
func (a *announceProcessor) onLinesMatched(def *domain.IndexerDefinition, vars map[string]string, rls *domain.Release) error {
|
||||
var err error
|
||||
|
||||
err = rls.MapVars(def, vars)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue