|
|
@ -2,7 +2,6 @@
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading;
|
|
|
@ -26,9 +25,11 @@ namespace MediaBrowser.Providers.Savers
|
|
|
|
/// <returns><c>true</c> if [is enabled for] [the specified item]; otherwise, <c>false</c>.</returns>
|
|
|
|
/// <returns><c>true</c> if [is enabled for] [the specified item]; otherwise, <c>false</c>.</returns>
|
|
|
|
public bool IsEnabledFor(BaseItem item, ItemUpdateType updateType)
|
|
|
|
public bool IsEnabledFor(BaseItem item, ItemUpdateType updateType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var wasMetadataEdited = (updateType & ItemUpdateType.MetadataEdit) == ItemUpdateType.MetadataEdit;
|
|
|
|
|
|
|
|
var wasMetadataDownloaded = (updateType & ItemUpdateType.MetadataDownload) == ItemUpdateType.MetadataDownload;
|
|
|
|
|
|
|
|
|
|
|
|
// If new metadata has been downloaded and save local is on, OR metadata was manually edited, proceed
|
|
|
|
// If new metadata has been downloaded and save local is on, OR metadata was manually edited, proceed
|
|
|
|
if ((_config.Configuration.SaveLocalMeta && (updateType & ItemUpdateType.MetadataDownload) == ItemUpdateType.MetadataDownload)
|
|
|
|
if ((_config.Configuration.SaveLocalMeta && (wasMetadataEdited || wasMetadataDownloaded)) || wasMetadataEdited)
|
|
|
|
|| (updateType & ItemUpdateType.MetadataEdit) == ItemUpdateType.MetadataEdit)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return item is Season;
|
|
|
|
return item is Season;
|
|
|
|
}
|
|
|
|
}
|
|
|
|