mirror of https://github.com/Jackett/Jackett
mejortorrent: strip SxxExx from title for query. resolves #12559
This commit is contained in:
parent
d1f078b36b
commit
e45e8a9e4f
|
@ -421,10 +421,12 @@ namespace Jackett.Common.Indexers
|
||||||
// Eg. Doctor.Who.2005.(Доктор.Кто).S02E08
|
// Eg. Doctor.Who.2005.(Доктор.Кто).S02E08
|
||||||
|
|
||||||
// the season/episode part is already parsed by Jackett
|
// the season/episode part is already parsed by Jackett
|
||||||
// query.GetQueryString = Doctor.Who.2005.(Доктор.Кто).
|
// query.GetQueryString = Doctor.Who.2005.(Доктор.Кто).S02E08
|
||||||
// query.Season = 2
|
// query.Season = 2
|
||||||
// query.Episode = 8
|
// query.Episode = 8
|
||||||
var searchTerm = query.GetQueryString();
|
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,
|
// Server returns a 500 error if a UTF character higher than \u00FF (ÿ) is included,
|
||||||
// so we need to strip them
|
// so we need to strip them
|
||||||
|
|
Loading…
Reference in New Issue