29 lines
		
	
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package convids
 | |
| 
 | |
| import "regexp"
 | |
| 
 | |
| type Data struct {
 | |
| 	Config *Config
 | |
| 	Shows  *ShowMap
 | |
| }
 | |
| 
 | |
| type Config struct {
 | |
| 	Source     string
 | |
| 	Extensions []string
 | |
| 	Shows      []string
 | |
| 
 | |
| 	extRe *regexp.Regexp
 | |
| }
 | |
| 
 | |
| type ShowMap map[string]*Shows
 | |
| 
 | |
| type Shows []*Show
 | |
| 
 | |
| type Show struct {
 | |
| 	Folder  string
 | |
| 	Pattern string
 | |
| 	Name    string
 | |
| 	Anime   bool
 | |
| 
 | |
| 	re *regexp.Regexp
 | |
| }
 |