Skip to content

Commit

Permalink
Fix "force Series" issues (caused by bad regex matches)
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Jul 6, 2016
1 parent 5dec233 commit f1c6264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amc.groovy
Expand Up @@ -65,7 +65,7 @@ def forceMovie = { f ->
}

def forceSeries = { f ->
label =~ /^(?i:TV|Show|Series|Documentary)/ || f.dir.listPath().any{ it.name ==~ /(?i:TV.Shows)/ } || f.path =~ /(?i:tvs-|tvp-|E[P]?\d{1,3}|Season[\D]?\d{1,2}|\d{4}.S\d{2})/ || parseEpisodeNumber(f.path, true) || parseDate(f.path)
label =~ /^(?i:TV|Show|Series|Documentary)/ || f.dir.listPath().any{ it.name ==~ /(?i:TV.Shows)/ } || f.path =~ /(?<=\b|_)(?i:tvs-|tvp-|E[P]?\d{1,3}|Season[\D]?\d{1,2}|\d{4}.S\d{2})(?=\b|_)/ || parseEpisodeNumber(f.path, true) || parseDate(f.path)
}

def forceAnime = { f ->
Expand Down

0 comments on commit f1c6264

Please sign in to comment.