From d2533b6de0fff9e570ad8028d41c4a7c80d7f525 Mon Sep 17 00:00:00 2001 From: warmans <> Date: Sat, 12 Oct 2024 19:25:45 +0100 Subject: [PATCH] Increase max gif duration to 30 seconds --- cmd/tools/tools.go | 2 +- pkg/limits/limits.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/tools.go b/cmd/tools/tools.go index e512c56..f009701 100644 --- a/cmd/tools/tools.go +++ b/cmd/tools/tools.go @@ -30,7 +30,7 @@ func NewToolsCommand(logger *slog.Logger) *cobra.Command { } var nameWithShortSeasonAndEpisode = regexp.MustCompile(`^.*[sS](?P\d+)(\s+)?[eE](?P\d+).*$`) -var nameWithLongSeasonAndEpisode = regexp.MustCompile(`^.*[sS]eason (?P\d+) [eE]pisode (?P\d+).*$`) +var nameWithLongSeasonAndEpisode = regexp.MustCompile(`^.*[sS](eason|eries) (?P\d+) [eE]pisode (?P\d+).*$`) var nameWithSplitSeasonAndEpisode = regexp.MustCompile(`^.*[sS](?P\d+)\.[eE](?P\d+).*$`) var shortSeasonAndEpisode = regexp.MustCompile(`^.*(?P\d+)x(?P\d+).*$`) diff --git a/pkg/limits/limits.go b/pkg/limits/limits.go index 36d3a9f..61950c6 100644 --- a/pkg/limits/limits.go +++ b/pkg/limits/limits.go @@ -2,4 +2,4 @@ package limits import "time" -const MaxGifDuration = time.Second * 20 +const MaxGifDuration = time.Second * 30