fix live tv folders being created in a loop

This commit is contained in:
Luke Pulverenti
2017-01-11 12:56:26 -05:00
parent 12f20de68b
commit 0b5d4ce3f8
12 changed files with 34 additions and 35 deletions

View File

@@ -647,7 +647,7 @@ namespace MediaBrowser.Controller.Entities
private static bool ContainsPath(string parent, string path)
{
return string.Equals(parent, path, StringComparison.OrdinalIgnoreCase) || FileSystem.ContainsSubPath(parent, path);
return FileSystem.AreEqual(parent, path) || FileSystem.ContainsSubPath(parent, path);
}
/// <summary>

View File

@@ -20,17 +20,4 @@ namespace MediaBrowser.Controller.Entities
{
bool EnableUserSpecificView { get; }
}
public static class CollectionFolderExtensions
{
public static string GetViewType(this ICollectionFolder folder, User user)
{
if (user.Configuration.PlainFolderViews.Contains(folder.Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
{
return null;
}
return folder.CollectionType;
}
}
}