From e45e8a9e4fdfb246dd629ec31c39abfff6890b7f Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 1 Feb 2023 12:57:43 +1300 Subject: [PATCH] mejortorrent: strip SxxExx from title for query. resolves #12559 --- src/Jackett.Common/Indexers/MejorTorrent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Indexers/MejorTorrent.cs b/src/Jackett.Common/Indexers/MejorTorrent.cs index 95b14d516..263b97cca 100644 --- a/src/Jackett.Common/Indexers/MejorTorrent.cs +++ b/src/Jackett.Common/Indexers/MejorTorrent.cs @@ -421,10 +421,12 @@ namespace Jackett.Common.Indexers // Eg. Doctor.Who.2005.(Доктор.Кто).S02E08 // the season/episode part is already parsed by Jackett - // query.GetQueryString = Doctor.Who.2005.(Доктор.Кто). + // query.GetQueryString = Doctor.Who.2005.(Доктор.Кто).S02E08 // query.Season = 2 // query.Episode = 8 var searchTerm = query.GetQueryString(); + // remove the season/episode from the query as MejorTorrent only wants the series name + searchTerm = Regex.Replace(searchTerm, @"[S|s]\d+[E|e]\d+", ""); // Server returns a 500 error if a UTF character higher than \u00FF (ÿ) is included, // so we need to strip them