44 lines
636 B
Go
44 lines
636 B
Go
package convids
|
|
|
|
import (
|
|
"regexp"
|
|
|
|
"codeberg.org/danjones000/utils/types"
|
|
)
|
|
|
|
type Data struct {
|
|
Config *Config
|
|
Shows *ShowMap
|
|
}
|
|
|
|
type Config struct {
|
|
Source string
|
|
Extensions []string
|
|
Groups []string
|
|
Skip []string
|
|
|
|
extRe *regexp.Regexp
|
|
}
|
|
|
|
type ShowMap map[string]*Shows
|
|
|
|
type Shows []*Show
|
|
|
|
type Show struct {
|
|
Folder string
|
|
Pattern string
|
|
Name string
|
|
Anime bool
|
|
Url bool
|
|
Backup string
|
|
Sources []string
|
|
Flexget struct {
|
|
Name string
|
|
Begin types.IntOrString
|
|
AlternateName []string `yaml:"alternate_name"`
|
|
Exact bool
|
|
Skip bool
|
|
}
|
|
|
|
re *regexp.Regexp
|
|
}
|