auto-organize fixes

This commit is contained in:
Luke Pulverenti
2016-05-14 12:06:01 -04:00
parent 7d716dd94b
commit 4d66f6dc6c
4 changed files with 47 additions and 15 deletions

View File

@@ -356,6 +356,11 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
private void SaveSmartMatchString(string matchString, Series series, AutoOrganizeOptions options)
{
if (string.IsNullOrEmpty(matchString) || matchString.Length < 3)
{
return;
}
SmartMatchInfo info = options.SmartMatchInfos.FirstOrDefault(i => string.Equals(i.ItemName, series.Name, StringComparison.OrdinalIgnoreCase));
if (info == null)