mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
add master changes
This commit is contained in:
@@ -149,7 +149,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||||||
|
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
_logger.Debug("Cleaning item {0} type: {1} path: {2}", item.Name, item.GetType().Name, item.Path ?? string.Empty);
|
_logger.Info("Cleaning item {0} type: {1} path: {2}", item.Name, item.GetType().Name, item.Path ?? string.Empty);
|
||||||
|
|
||||||
await _libraryManager.DeleteItem(item, new DeleteOptions
|
await _libraryManager.DeleteItem(item, new DeleteOptions
|
||||||
{
|
{
|
||||||
@@ -170,7 +170,6 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||||||
{
|
{
|
||||||
var result = _itemRepo.GetItemIdsWithPath(new InternalItemsQuery
|
var result = _itemRepo.GetItemIdsWithPath(new InternalItemsQuery
|
||||||
{
|
{
|
||||||
IsOffline = false,
|
|
||||||
LocationType = LocationType.FileSystem,
|
LocationType = LocationType.FileSystem,
|
||||||
//Limit = limit,
|
//Limit = limit,
|
||||||
|
|
||||||
@@ -214,6 +213,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_logger.Info("Deleting item from database {0} because path no longer exists. type: {1} path: {2}", libraryItem.Name, libraryItem.GetType().Name, libraryItem.Path ?? string.Empty);
|
||||||
|
|
||||||
await _libraryManager.DeleteItem(libraryItem, new DeleteOptions
|
await _libraryManager.DeleteItem(libraryItem, new DeleteOptions
|
||||||
{
|
{
|
||||||
DeleteFileLocation = false
|
DeleteFileLocation = false
|
||||||
|
|||||||
Reference in New Issue
Block a user