mejortorrent: strip SxxExx from title for query. resolves #12559

This commit is contained in:
Garfield69 2023-02-01 12:57:43 +13:00
parent d1f078b36b
commit e45e8a9e4f
1 changed files with 3 additions and 1 deletions

View File

@ -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