Improve has_episodes regex
This commit is contained in:
@@ -216,7 +216,10 @@ func (z *ZurgConfigV1) matchFilter(torrentName string, torrentSize int64, torren
|
||||
return false
|
||||
}
|
||||
if filter.HasEpisodes {
|
||||
regex := regexp.MustCompile(`(?i)s\d\de\d\d`)
|
||||
regex := regexp.MustCompile(`(?i)s\d{2,3}.?e\d{2,3}`)
|
||||
if regex.MatchString(torrentName) {
|
||||
return true
|
||||
}
|
||||
for _, filename := range fileNames {
|
||||
if regex.MatchString(filename) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user