From 9489bf44378b26ee5baf440fb17c64cf12380658 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 3 Oct 2021 18:59:22 +1300 Subject: [PATCH] seals: strip director from start if movie title. #12245 --- src/Jackett.Common/Indexers/Seals.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Jackett.Common/Indexers/Seals.cs b/src/Jackett.Common/Indexers/Seals.cs index eefb5f749..36661233b 100644 --- a/src/Jackett.Common/Indexers/Seals.cs +++ b/src/Jackett.Common/Indexers/Seals.cs @@ -70,6 +70,15 @@ namespace Jackett.Common.Indexers release.MinimumSeedTime = 172800; // 48 hours // tag each results with both Movie and TV cats. release.Category = new List { TorznabCatType.Movies.ID, TorznabCatType.TV.ID }; + // Seals loads artist with the movie director and the gazelleTracker abstract + // places it in front of the movie separated with a dash. + // eg. Keishi Ohtomo -​ Rurouni Kenshin Part II: Kyoto Inferno [2014] [Feature Film] 1080p /​ MKV /​ x264 /​ 0 + // We need to strip it or Radarr will not get a title match for automatic DL + var artistEndsAt = release.Title.IndexOf(" - "); + if (artistEndsAt > -1) + { + release.Title = release.Title.Substring(artistEndsAt + 3); + } } return releases; }