|
|
@ -169,15 +169,7 @@ namespace MediaBrowser.Providers.Manager
|
|
|
|
/// <returns>ItemUpdateType.</returns>
|
|
|
|
/// <returns>ItemUpdateType.</returns>
|
|
|
|
protected virtual ItemUpdateType BeforeSave(TItemType item)
|
|
|
|
protected virtual ItemUpdateType BeforeSave(TItemType item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var updateType = ItemUpdateType.None;
|
|
|
|
return ItemUpdateType.None;
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(item.Name) && !string.IsNullOrEmpty(item.Path))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
item.Name = Path.GetFileNameWithoutExtension(item.Path);
|
|
|
|
|
|
|
|
updateType = updateType | ItemUpdateType.MetadataDownload;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return updateType;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -311,11 +303,6 @@ namespace MediaBrowser.Providers.Manager
|
|
|
|
refreshResult.UpdateType = refreshResult.UpdateType | ItemUpdateType.ImageUpdate;
|
|
|
|
refreshResult.UpdateType = refreshResult.UpdateType | ItemUpdateType.ImageUpdate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(localItem.Item.Name))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
localItem.Item.Name = item.Name ?? Path.GetFileNameWithoutExtension(item.Path);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MergeData(localItem.Item, temp, new List<MetadataFields>(), !options.ReplaceAllMetadata, true);
|
|
|
|
MergeData(localItem.Item, temp, new List<MetadataFields>(), !options.ReplaceAllMetadata, true);
|
|
|
|
refreshResult.UpdateType = refreshResult.UpdateType | ItemUpdateType.MetadataImport;
|
|
|
|
refreshResult.UpdateType = refreshResult.UpdateType | ItemUpdateType.MetadataImport;
|
|
|
|
|
|
|
|
|
|
|
|