mirror of
https://github.com/Radarr/Radarr
synced 2025-12-24 09:13:45 +01:00
parent
3a7c4b2cfe
commit
c896833607
1 changed files with 5 additions and 3 deletions
|
|
@ -317,6 +317,8 @@ public List<Movie> SearchForNewMovie(string title)
|
|||
|
||||
lowerTitle = lowerTitle.Replace(".", "");
|
||||
|
||||
var parserTitle = lowerTitle;
|
||||
|
||||
var parserResult = Parser.Parser.ParseMovieTitle(title, true);
|
||||
|
||||
var yearTerm = "";
|
||||
|
|
@ -324,7 +326,7 @@ public List<Movie> SearchForNewMovie(string title)
|
|||
if (parserResult != null && parserResult.MovieTitle != title)
|
||||
{
|
||||
//Parser found something interesting!
|
||||
lowerTitle = parserResult.MovieTitle.ToLower().Replace(".", " "); //TODO Update so not every period gets replaced (e.g. R.I.P.D.)
|
||||
parserTitle = parserResult.MovieTitle.ToLower().Replace(".", " "); //TODO Update so not every period gets replaced (e.g. R.I.P.D.)
|
||||
if (parserResult.Year > 1800)
|
||||
{
|
||||
yearTerm = parserResult.Year.ToString();
|
||||
|
|
@ -343,7 +345,7 @@ public List<Movie> SearchForNewMovie(string title)
|
|||
}
|
||||
}
|
||||
|
||||
lowerTitle = StripTrailingTheFromTitle(lowerTitle);
|
||||
parserTitle = StripTrailingTheFromTitle(parserTitle);
|
||||
|
||||
if (lowerTitle.StartsWith("imdb:") || lowerTitle.StartsWith("imdbid:"))
|
||||
{
|
||||
|
|
@ -387,7 +389,7 @@ public List<Movie> SearchForNewMovie(string title)
|
|||
}
|
||||
}
|
||||
|
||||
var searchTerm = lowerTitle.Replace("_", "+").Replace(" ", "+").Replace(".", "+");
|
||||
var searchTerm = parserTitle.Replace("_", "+").Replace(" ", "+").Replace(".", "+");
|
||||
|
||||
var firstChar = searchTerm.First();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue