fix: episode match

This commit is contained in:
Simon Ding
2024-11-15 13:12:20 +08:00
parent 58428405b0
commit c433ccaa0e
2 changed files with 12 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ func findEpisodes(s string) (start int, end int) {
if maybeSeasonPack(s) { //avoid miss match, season pack not use this rule
return -1, -1
}
re3 := regexp.MustCompile(`[^\d\w]\d{1,2}[^\d\w]`)
re3 := regexp.MustCompile(`[^(season)][^\d\w]\d{1,2}[^\d\w]`)
epNums := re3.FindAllString(s, -1)
if len(epNums) > 0 {