mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 04:34:18 +01:00
fix live tv folders being created in a loop
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user