Support season banners and posters with fanart

This commit is contained in:
Luke Pulverenti 2015-02-22 14:05:29 -05:00
parent a0c6c259e6
commit 20ceca1479
2 changed files with 7 additions and 3 deletions

View file

@ -57,7 +57,9 @@ namespace MediaBrowser.Providers.TV
return new List<ImageType>
{
ImageType.Backdrop,
ImageType.Thumb
ImageType.Thumb,
ImageType.Banner,
ImageType.Primary
};
}
@ -152,6 +154,8 @@ namespace MediaBrowser.Providers.TV
private void AddImages(List<RemoteImageInfo> list, FanartSeriesProvider.RootObject obj, int seasonNumber, CancellationToken cancellationToken)
{
PopulateImages(list, obj.seasonposter, ImageType.Primary, 1000, 1426, seasonNumber);
PopulateImages(list, obj.seasonbanner, ImageType.Primary, 1000, 185, seasonNumber);
PopulateImages(list, obj.seasonthumb, ImageType.Thumb, 500, 281, seasonNumber);
PopulateImages(list, obj.showbackground, ImageType.Backdrop, 1920, 1080, seasonNumber);
}

View file

@ -1,5 +1,4 @@
using System.Net;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.IO;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
@ -18,6 +17,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;