mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-10 16:23:06 +01:00
add content type error handling
This commit is contained in:
@@ -3084,7 +3084,11 @@ namespace Emby.Server.Implementations.Library
|
||||
|
||||
foreach (var contentType in ConfigurationManager.Configuration.ContentTypes)
|
||||
{
|
||||
if (string.Equals(path, contentType.Name, StringComparison.OrdinalIgnoreCase)
|
||||
if (string.IsNullOrWhiteSpace(contentType.Name))
|
||||
{
|
||||
removeList.Add(contentType);
|
||||
}
|
||||
else if (string.Equals(path, contentType.Name, StringComparison.OrdinalIgnoreCase)
|
||||
|| _fileSystem.ContainsSubPath(path, contentType.Name))
|
||||
{
|
||||
removeList.Add(contentType);
|
||||
|
||||
Reference in New Issue
Block a user