|
|
|
@ -41,6 +41,7 @@ using SortOrder = MediaBrowser.Model.Entities.SortOrder;
|
|
|
|
|
using VideoResolver = MediaBrowser.Naming.Video.VideoResolver;
|
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Common.IO;
|
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Emby.Server.Implementations.Library
|
|
|
|
@ -375,11 +376,22 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
|
throw new ArgumentNullException("item");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_logger.Debug("Deleting item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
|
|
|
|
item.GetType().Name,
|
|
|
|
|
item.Name ?? "Unknown name",
|
|
|
|
|
item.Path ?? string.Empty,
|
|
|
|
|
item.Id);
|
|
|
|
|
if (item is LiveTvProgram)
|
|
|
|
|
{
|
|
|
|
|
_logger.Debug("Deleting item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
|
|
|
|
item.GetType().Name,
|
|
|
|
|
item.Name ?? "Unknown name",
|
|
|
|
|
item.Path ?? string.Empty,
|
|
|
|
|
item.Id);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_logger.Info("Deleting item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
|
|
|
|
item.GetType().Name,
|
|
|
|
|
item.Name ?? "Unknown name",
|
|
|
|
|
item.Path ?? string.Empty,
|
|
|
|
|
item.Id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var parent = item.Parent;
|
|
|
|
|
|
|
|
|
|