diff --git a/MediaBrowser.Controller/Providers/TV/FanArtSeasonProvider.cs b/MediaBrowser.Controller/Providers/TV/FanArtSeasonProvider.cs
index 36eb09242..167f855a4 100644
--- a/MediaBrowser.Controller/Providers/TV/FanArtSeasonProvider.cs
+++ b/MediaBrowser.Controller/Providers/TV/FanArtSeasonProvider.cs
@@ -2,7 +2,6 @@
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.TV;
-using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
using System;
@@ -13,19 +12,33 @@ using System.Xml;
namespace MediaBrowser.Controller.Providers.TV
{
+ ///
+ /// Class FanArtSeasonProvider
+ ///
class FanArtSeasonProvider : FanartBaseProvider
{
///
/// The _provider manager
///
private readonly IProviderManager _providerManager;
-
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The log manager.
+ /// The configuration manager.
+ /// The provider manager.
public FanArtSeasonProvider(ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager)
: base(logManager, configurationManager)
{
_providerManager = providerManager;
}
+ ///
+ /// Supportses the specified item.
+ ///
+ /// The item.
+ /// true if XXXX, false otherwise
public override bool Supports(BaseItem item)
{
return item is Season;
@@ -84,6 +97,13 @@ namespace MediaBrowser.Controller.Providers.TV
return key.GetMD5();
}
+ ///
+ /// Fetches metadata and returns true or false indicating if any work that requires persistence was done
+ ///
+ /// The item.
+ /// if set to true [force].
+ /// The cancellation token.
+ /// Task{System.Boolean}.
public override async Task FetchAsync(BaseItem item, bool force, CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -101,7 +121,7 @@ namespace MediaBrowser.Controller.Providers.TV
if (imagesFileInfo.Exists)
{
- if (!season.HasImage(ImageType.Primary) || !season.HasImage(ImageType.Banner) || season.BackdropImagePaths.Count == 0)
+ if (!season.HasImage(ImageType.Thumb))
{
var xmlDoc = new XmlDocument();
xmlDoc.Load(imagesXmlPath);