mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat: show irc network status in settings list
This commit is contained in:
parent
dcd1d458cf
commit
f103dff221
6 changed files with 221 additions and 11 deletions
|
@ -72,6 +72,24 @@ type IndexerIRC struct {
|
|||
Settings []IndexerSetting `json:"settings"`
|
||||
}
|
||||
|
||||
func (i IndexerIRC) ValidAnnouncer(announcer string) bool {
|
||||
for _, a := range i.Announcers {
|
||||
if a == announcer {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (i IndexerIRC) ValidChannel(channel string) bool {
|
||||
for _, a := range i.Channels {
|
||||
if a == channel {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type IndexerParse struct {
|
||||
Type string `json:"type"`
|
||||
Lines []IndexerParseExtract `json:"lines"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue