示例#1
0
文件: renamer.go 项目: pboehm/series
func ExtractEpisodeInformation(entry string) map[string]string {
	for _, pattern := range Patterns {
		groups, matched := util.NamedCaptureGroups(pattern, entry)
		if matched {
			return groups
		}
	}
	return nil
}
示例#2
0
文件: renamer.go 项目: pboehm/series
func IsInterestingDirEntry(entry string) bool {
	for _, pattern := range Patterns {
		_, matched := util.NamedCaptureGroups(pattern, entry)
		if matched {
			return true
		}
	}
	return false
}