| 
					
				 | 
			
			
				@@ -116,7 +116,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         premiereDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         options, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         overwriteExisting, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         result, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         cancellationToken).ConfigureAwait(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -202,7 +202,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 options, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				request.RememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                request.RememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 result, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cancellationToken).ConfigureAwait(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -219,7 +219,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             DateTime? premiereDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AutoOrganizeOptions options, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             bool overwriteExisting, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			bool rememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            bool rememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             FileOrganizationResult result, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             CancellationToken cancellationToken) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -242,7 +242,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 premiereDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 options, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 overwriteExisting, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				rememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                rememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 result, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cancellationToken); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -255,7 +255,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             DateTime? premiereDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AutoOrganizeOptions options, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             bool overwriteExisting, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			bool rememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            bool rememberCorrection, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             FileOrganizationResult result, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             CancellationToken cancellationToken) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -536,7 +536,11 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             result.ExtractedName = nameWithoutYear; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             result.ExtractedYear = yearInName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var series = _libraryManager.RootFolder.GetRecursiveChildren(i => i is Series) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            var series = _libraryManager.GetItemList(new Controller.Entities.InternalItemsQuery 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                IncludeItemTypes = new[] { typeof(Series).Name }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Recursive = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .Cast<Series>() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .Select(i => NameUtils.GetMatchScore(nameWithoutYear, yearInName, i)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .Where(i => i.Item2 > 0) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -550,10 +554,12 @@ namespace MediaBrowser.Server.Implementations.FileOrganization 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (info != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    series = _libraryManager.RootFolder 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .GetRecursiveChildren(i => i is Series) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .Cast<Series>() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .FirstOrDefault(i => string.Equals(i.Name, info.ItemName, StringComparison.OrdinalIgnoreCase)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    series = _libraryManager.GetItemList(new Controller.Entities.InternalItemsQuery 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        IncludeItemTypes = new[] { typeof(Series).Name }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Recursive = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }).Cast<Series>() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .FirstOrDefault(i => string.Equals(i.Name, info.ItemName, StringComparison.OrdinalIgnoreCase)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |