removed duplicate resource pool
This commit is contained in:
parent
7684804c12
commit
c415b6afa6
|
@ -19,11 +19,6 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
/// </summary>
|
/// </summary>
|
||||||
class FanArtMovieProvider : FanartBaseProvider, IDisposable
|
class FanArtMovieProvider : FanartBaseProvider, IDisposable
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// The fan art
|
|
||||||
/// </summary>
|
|
||||||
internal readonly SemaphoreSlim FanArtResourcePool = new SemaphoreSlim(5, 5);
|
|
||||||
|
|
||||||
internal static FanArtMovieProvider Current { get; private set; }
|
internal static FanArtMovieProvider Current { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -69,7 +69,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var xml = await HttpClient.Get(url, FanArtMovieProvider.Current.FanArtResourcePool, cancellationToken).ConfigureAwait(false))
|
using (var xml = await HttpClient.Get(url, FanArtResourcePool, cancellationToken).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
doc.Load(xml);
|
doc.Load(xml);
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||||
Logger.Debug("FanArtProvider getting ClearLogo for " + series.Name);
|
Logger.Debug("FanArtProvider getting ClearLogo for " + series.Name);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
series.SetImage(ImageType.Logo, await _providerManager.DownloadAndSaveImage(series, path, LOGO_FILE, FanArtMovieProvider.Current.FanArtResourcePool, cancellationToken).ConfigureAwait(false));
|
series.SetImage(ImageType.Logo, await _providerManager.DownloadAndSaveImage(series, path, LOGO_FILE, FanArtResourcePool, cancellationToken).ConfigureAwait(false));
|
||||||
}
|
}
|
||||||
catch (HttpException)
|
catch (HttpException)
|
||||||
{
|
{
|
||||||
|
@ -117,7 +117,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||||
Logger.Debug("FanArtProvider getting ClearArt for " + series.Name);
|
Logger.Debug("FanArtProvider getting ClearArt for " + series.Name);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
series.SetImage(ImageType.Art, await _providerManager.DownloadAndSaveImage(series, path, ART_FILE, FanArtMovieProvider.Current.FanArtResourcePool, cancellationToken).ConfigureAwait(false));
|
series.SetImage(ImageType.Art, await _providerManager.DownloadAndSaveImage(series, path, ART_FILE, FanArtResourcePool, cancellationToken).ConfigureAwait(false));
|
||||||
}
|
}
|
||||||
catch (HttpException)
|
catch (HttpException)
|
||||||
{
|
{
|
||||||
|
@ -141,7 +141,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||||
Logger.Debug("FanArtProvider getting ThumbArt for " + series.Name);
|
Logger.Debug("FanArtProvider getting ThumbArt for " + series.Name);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
series.SetImage(ImageType.Disc, await _providerManager.DownloadAndSaveImage(series, path, THUMB_FILE, FanArtMovieProvider.Current.FanArtResourcePool, cancellationToken).ConfigureAwait(false));
|
series.SetImage(ImageType.Disc, await _providerManager.DownloadAndSaveImage(series, path, THUMB_FILE, FanArtResourcePool, cancellationToken).ConfigureAwait(false));
|
||||||
}
|
}
|
||||||
catch (HttpException)
|
catch (HttpException)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user