update change monitors
This commit is contained in:
parent
d54f791159
commit
9ec3b6c0eb
|
@ -23,7 +23,7 @@ using MediaBrowser.Providers.TV;
|
|||
|
||||
namespace MediaBrowser.Providers.Movies
|
||||
{
|
||||
public class FanartMovieImageProvider : IRemoteImageProvider, IHasChangeMonitor, IHasOrder
|
||||
public class FanartMovieImageProvider : IRemoteImageProvider, IHasItemChangeMonitor, IHasOrder
|
||||
{
|
||||
private readonly CultureInfo _usCulture = new CultureInfo("en-US");
|
||||
private readonly IServerConfigurationManager _config;
|
||||
|
@ -239,7 +239,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
});
|
||||
}
|
||||
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService, DateTime date)
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
||||
{
|
||||
var options = FanartSeriesProvider.Current.GetFanartOptions();
|
||||
if (!options.EnableAutomaticUpdates)
|
||||
|
@ -260,7 +260,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
|
||||
var fileInfo = _fileSystem.GetFileInfo(path);
|
||||
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > date;
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > item.DateLastRefreshed;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
@ -19,7 +19,7 @@ using MediaBrowser.Model.Serialization;
|
|||
|
||||
namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
public class FanartAlbumProvider : IRemoteImageProvider, IHasChangeMonitor, IHasOrder
|
||||
public class FanartAlbumProvider : IRemoteImageProvider, IHasItemChangeMonitor, IHasOrder
|
||||
{
|
||||
private readonly CultureInfo _usCulture = new CultureInfo("en-US");
|
||||
private readonly IServerConfigurationManager _config;
|
||||
|
@ -213,7 +213,7 @@ namespace MediaBrowser.Providers.Music
|
|||
});
|
||||
}
|
||||
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService, DateTime date)
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
||||
{
|
||||
var options = FanartSeriesProvider.Current.GetFanartOptions();
|
||||
if (!options.EnableAutomaticUpdates)
|
||||
|
@ -235,7 +235,7 @@ namespace MediaBrowser.Providers.Music
|
|||
|
||||
var fileInfo = _fileSystem.GetFileInfo(artistJsonPath);
|
||||
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > date;
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > item.DateLastRefreshed;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ using MediaBrowser.Model.Serialization;
|
|||
|
||||
namespace MediaBrowser.Providers.Music
|
||||
{
|
||||
public class FanartArtistProvider : IRemoteImageProvider, IHasChangeMonitor, IHasOrder
|
||||
public class FanartArtistProvider : IRemoteImageProvider, IHasItemChangeMonitor, IHasOrder
|
||||
{
|
||||
internal readonly SemaphoreSlim FanArtResourcePool = new SemaphoreSlim(3, 3);
|
||||
internal const string ApiKey = "5c6b04c68e904cfed1e6cbc9a9e683d4";
|
||||
|
@ -207,7 +207,7 @@ namespace MediaBrowser.Providers.Music
|
|||
});
|
||||
}
|
||||
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService, DateTime date)
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
||||
{
|
||||
var options = FanartSeriesProvider.Current.GetFanartOptions();
|
||||
if (!options.EnableAutomaticUpdates)
|
||||
|
@ -224,7 +224,7 @@ namespace MediaBrowser.Providers.Music
|
|||
|
||||
var fileInfo = _fileSystem.GetFileInfo(artistJsonPath);
|
||||
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > date;
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > item.DateLastRefreshed;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
@ -21,7 +21,7 @@ using CommonIO;
|
|||
|
||||
namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
public class FanArtSeasonProvider : IRemoteImageProvider, IHasOrder, IHasChangeMonitor
|
||||
public class FanArtSeasonProvider : IRemoteImageProvider, IHasOrder, IHasItemChangeMonitor
|
||||
{
|
||||
private readonly CultureInfo _usCulture = new CultureInfo("en-US");
|
||||
private readonly IServerConfigurationManager _config;
|
||||
|
@ -225,7 +225,7 @@ namespace MediaBrowser.Providers.TV
|
|||
});
|
||||
}
|
||||
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService, DateTime date)
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
||||
{
|
||||
var options = FanartSeriesProvider.Current.GetFanartOptions();
|
||||
if (!options.EnableAutomaticUpdates)
|
||||
|
@ -250,7 +250,7 @@ namespace MediaBrowser.Providers.TV
|
|||
|
||||
var fileInfo = _fileSystem.GetFileInfo(imagesFilePath);
|
||||
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > date;
|
||||
return !fileInfo.Exists || _fileSystem.GetLastWriteTimeUtc(fileInfo) > item.DateLastRefreshed;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
@ -20,7 +20,7 @@ using CommonIO;
|
|||
|
||||
namespace MediaBrowser.Providers.TV
|
||||
{
|
||||
public class TvdbSeasonImageProvider : IRemoteImageProvider, IHasOrder, IHasChangeMonitor
|
||||
public class TvdbSeasonImageProvider : IRemoteImageProvider, IHasOrder, IHasItemChangeMonitor
|
||||
{
|
||||
private static readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
||||
|
||||
|
@ -363,7 +363,7 @@ namespace MediaBrowser.Providers.TV
|
|||
});
|
||||
}
|
||||
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService, DateTime date)
|
||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
||||
{
|
||||
if (item.LocationType != LocationType.Virtual)
|
||||
{
|
||||
|
@ -384,7 +384,7 @@ namespace MediaBrowser.Providers.TV
|
|||
|
||||
var fileInfo = _fileSystem.GetFileInfo(imagesXmlPath);
|
||||
|
||||
return fileInfo.Exists && _fileSystem.GetLastWriteTimeUtc(fileInfo) > date;
|
||||
return fileInfo.Exists && _fileSystem.GetLastWriteTimeUtc(fileInfo) > item.DateLastRefreshed;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user