dual first

main
Bel LaPointe 2025-04-05 11:20:10 -06:00
parent e653c35275
commit d3c9b1a564
1 changed files with 8 additions and 3 deletions

11
main.go
View File

@ -143,8 +143,9 @@ func Main(ctx context.Context) error {
} }
const ( const (
PatternGroupTitleHyphenSE = `^(\[[^\]]*\] )?(?P<title>.*?)( -)?[ \.](S(?P<season>[0-9]{2})E)?(?P<episode>[0-9]{2})[^0-9].*` PatternGroupTitleHyphenSEDual = `^(\[[^\]]*\] )?(?P<title>.*?)( -)?[ \.](S(?P<season>[0-9]{2})E)?(?P<episode>[0-9]{2})[^0-9].*[dD][uU][aA][lL].*`
PatternTitleSE = `^(?P<title>.*) S(?P<season>[0-9]+)E(?P<episode>[0-9]+).*` PatternGroupTitleHyphenSE = `^(\[[^\]]*\] )?(?P<title>.*?)( -)?[ \.](S(?P<season>[0-9]{2})E)?(?P<episode>[0-9]{2})[^0-9].*`
PatternTitleSE = `^(?P<title>.*) S(?P<season>[0-9]+)E(?P<episode>[0-9]+).*`
) )
func Run(ctx context.Context, outd, ind string, patterns []string, overrides Fields, dry bool) error { func Run(ctx context.Context, outd, ind string, patterns []string, overrides Fields, dry bool) error {
@ -155,7 +156,11 @@ func Run(ctx context.Context, outd, ind string, patterns []string, overrides Fie
return RunWith(ctx, return RunWith(ctx,
outd, outd,
ind, ind,
append(patterns, PatternGroupTitleHyphenSE, PatternTitleSE), append(patterns,
PatternGroupTitleHyphenSEDual,
PatternGroupTitleHyphenSE,
PatternTitleSE,
),
overrides, overrides,
mvNLn, mvNLn,
) )