mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Support season banners and posters with fanart
This commit is contained in:
parent
a0c6c259e6
commit
20ceca1479
@ -57,7 +57,9 @@ namespace MediaBrowser.Providers.TV
|
|||||||
return new List<ImageType>
|
return new List<ImageType>
|
||||||
{
|
{
|
||||||
ImageType.Backdrop,
|
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)
|
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.seasonthumb, ImageType.Thumb, 500, 281, seasonNumber);
|
||||||
PopulateImages(list, obj.showbackground, ImageType.Backdrop, 1920, 1080, seasonNumber);
|
PopulateImages(list, obj.showbackground, ImageType.Backdrop, 1920, 1080, seasonNumber);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System.Net;
|
using MediaBrowser.Common.Configuration;
|
||||||
using MediaBrowser.Common.Configuration;
|
|
||||||
using MediaBrowser.Common.IO;
|
using MediaBrowser.Common.IO;
|
||||||
using MediaBrowser.Common.Net;
|
using MediaBrowser.Common.Net;
|
||||||
using MediaBrowser.Controller.Configuration;
|
using MediaBrowser.Controller.Configuration;
|
||||||
@ -18,6 +17,7 @@ using System.Collections.Generic;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user