From aaa92bf151924d4861cc72832a62a6abe49e6955 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Mon, 14 Jul 2025 14:14:04 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Get=20pattern=20from=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convids/methods.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/convids/methods.go b/convids/methods.go index f71981a..0688d20 100644 --- a/convids/methods.go +++ b/convids/methods.go @@ -18,6 +18,9 @@ func (s *Show) Match(path string) (bool, error) { if s == nil { return false, ErrNilPointer } + if !s.Anime && s.Name != "" && s.Pattern == "" { + s.Pattern = strings.ReplaceAll(s.Name, " ", ".") + } if s.Pattern != "" { return s.matchRegexp(path) }