🚧 WalkFiles
This commit is contained in:
parent
c711ed6567
commit
19206a9bf5
6 changed files with 157 additions and 16 deletions
|
|
@ -1,23 +1,29 @@
|
|||
package convids
|
||||
|
||||
import "regexp"
|
||||
|
||||
type Data struct {
|
||||
Config Config
|
||||
Shows ShowMap
|
||||
Config *Config
|
||||
Shows *ShowMap
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Source string
|
||||
Extensions []string
|
||||
Shows []string
|
||||
|
||||
extRe *regexp.Regexp
|
||||
}
|
||||
|
||||
type ShowMap map[string]Shows
|
||||
type ShowMap map[string]*Shows
|
||||
|
||||
type Shows []Show
|
||||
type Shows []*Show
|
||||
|
||||
type Show struct {
|
||||
Folder string
|
||||
Pattern string
|
||||
Name string
|
||||
Anime bool
|
||||
|
||||
re *regexp.Regexp
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue