33 lines
421 B
Go
33 lines
421 B
Go
package convids
|
|
|
|
import "regexp"
|
|
|
|
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
|
|
|
|
re *regexp.Regexp
|
|
}
|