mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
ParseSeriesName will now return normalized version of the title if it doesn't match any predefined
PostDownload provider will skip subfolders that are known series folders.
This commit is contained in:
parent
f5a8c3de87
commit
e269494ff8
6 changed files with 54 additions and 17 deletions
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Core.Providers.Core;
|
||||
using NzbDrone.Core.Repository;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
|
@ -176,12 +177,11 @@ namespace NzbDrone.Core.Providers
|
|||
}
|
||||
}
|
||||
|
||||
public virtual bool SeriesPathExists(string cleanPath)
|
||||
public virtual bool SeriesPathExists(string path)
|
||||
{
|
||||
if (GetAllSeries().Any(s => s.Path.ToLower() == cleanPath.ToLower()))
|
||||
return true;
|
||||
var normilizedPath = path.NormalizePath();
|
||||
|
||||
return false;
|
||||
return GetAllSeries().Any(s => s.Path.NormalizePath() == normilizedPath);
|
||||
}
|
||||
|
||||
public virtual List<Series> SearchForSeries(string title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue