| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2024-11-04 15:20:09 -06:00
										 |  |  | 	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 | 
					
						
							| 
									
										
										
										
											2024-10-23 21:24:10 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	re *regexp.Regexp | 
					
						
							| 
									
										
										
										
											2024-10-23 15:56:56 -05:00
										 |  |  | } |