utils/convids/models.go

45 lines
636 B
Go
Raw Normal View History

2024-10-23 15:56:56 -05:00
package convids
2025-07-16 11:40:25 -05:00
import (
"regexp"
"codeberg.org/danjones000/utils/types"
)
2024-10-23 21:24:10 -05:00
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
Groups []string
2024-11-04 15:50:34 -06:00
Skip []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
2025-07-02 14:15:32 -05:00
Url bool
Backup string
2024-11-16 23:38:44 -06:00
Sources []string
2025-07-16 11:40:25 -05:00
Flexget struct {
Name string
Begin types.IntOrString
AlternateName []string `yaml:"alternate_name"`
Exact bool
Skip bool
}
2024-10-23 21:24:10 -05:00
re *regexp.Regexp
2024-10-23 15:56:56 -05:00
}