aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-30 13:56:32 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-30 13:56:32 -0400
commit7987e64d3875ac0e175224d81d6815596b9dfba9 (patch)
tree0bf4015a4afa3f41e92915da21d0610b58fbd78b /Emby.Server.Implementations/Library/LibraryManager.cs
parentdb75d02f9c99aad3d88c8beaac5eafaa8aba0e3f (diff)
add new file method overloads
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 17e678615..dbb0160a5 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -1255,9 +1255,9 @@ namespace Emby.Server.Implementations.Library
private string GetCollectionType(string path)
{
- return _fileSystem.GetFiles(path, new[] { ".collection" }, true, false)
+ return _fileSystem.GetFilePaths(path, new[] { ".collection" }, true, false)
.Select(i => _fileSystem.GetFileNameWithoutExtension(i))
- .FirstOrDefault();
+ .FirstOrDefault(i => !string.IsNullOrWhiteSpace(i));
}
/// <summary>