utils/convids/models.go

30 lines
352 B
Go
Raw Normal View History

2024-10-23 15:56:56 -05:00
package convids
2024-10-23 21:24:10 -05:00
import "regexp"
2024-10-23 15:56:56 -05:00
type Data struct {
2024-10-23 21:24:10 -05:00
Config *Config
Shows *ShowMap
2024-10-23 15:56:56 -05:00
}
type Config struct {
Source string
Extensions []string
Shows []string
2024-10-23 21:24:10 -05:00
extRe *regexp.Regexp
2024-10-23 15:56:56 -05:00
}
2024-10-23 21:24:10 -05:00
type ShowMap map[string]*Shows
2024-10-23 15:56:56 -05:00
2024-10-23 21:24:10 -05:00
type Shows []*Show
2024-10-23 15:56:56 -05:00
type Show struct {
Folder string
Pattern string
Name string
Anime bool
2024-10-23 21:24:10 -05:00
re *regexp.Regexp
2024-10-23 15:56:56 -05:00
}