mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(irc): manually re-process announces (#1419)
* fix(releases): add manual processing * feat(irc): add re-process button to channel msg * feat(irc): add missing client method * feat(web): change reprocess icon placement --------- Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
parent
d9fc163655
commit
be05ffba73
15 changed files with 306 additions and 18 deletions
|
@ -36,6 +36,7 @@ type Service interface {
|
|||
LoadIndexerDefinitions() error
|
||||
GetIndexersByIRCNetwork(server string) []*domain.IndexerDefinition
|
||||
GetTorznabIndexers() []domain.IndexerDefinition
|
||||
GetMappedDefinitionByName(name string) (*domain.IndexerDefinition, error)
|
||||
Start() error
|
||||
TestApi(ctx context.Context, req domain.IndexerTestApiRequest) error
|
||||
ToggleEnabled(ctx context.Context, indexerID int, enabled bool) error
|
||||
|
@ -667,6 +668,15 @@ func (s *service) getDefinitionByName(name string) *domain.IndexerDefinition {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (s *service) GetMappedDefinitionByName(name string) (*domain.IndexerDefinition, error) {
|
||||
v, ok := s.mappedDefinitions[name]
|
||||
if !ok {
|
||||
return nil, errors.New("unknown indexer identifier: %s", name)
|
||||
}
|
||||
|
||||
return v, nil
|
||||
}
|
||||
|
||||
func (s *service) getMappedDefinitionByName(name string) *domain.IndexerDefinition {
|
||||
if v, ok := s.mappedDefinitions[name]; ok {
|
||||
return v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue