Beispiel #1
0
func ExtractEpisodeInformation(entry string) map[string]string {
	for _, pattern := range Patterns {
		groups, matched := util.NamedCaptureGroups(pattern, entry)
		if matched {
			return groups
		}
	}
	return nil
}
Beispiel #2
0
func IsInterestingDirEntry(entry string) bool {
	for _, pattern := range Patterns {
		_, matched := util.NamedCaptureGroups(pattern, entry)
		if matched {
			return true
		}
	}
	return false
}