mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #1844 from dkanada/poster
Fix missing image on seasons without posters
This commit is contained in:
commit
f1567c64a5
1 changed files with 6 additions and 2 deletions
|
@ -1099,7 +1099,9 @@ namespace Emby.Server.Implementations.Dto
|
||||||
|
|
||||||
Series episodeSeries = null;
|
Series episodeSeries = null;
|
||||||
|
|
||||||
if (options.ContainsField(ItemFields.SeriesPrimaryImage))
|
// this block will add the series poster for episodes without a poster
|
||||||
|
// TODO maybe remove the if statement entirely
|
||||||
|
//if (options.ContainsField(ItemFields.SeriesPrimaryImage))
|
||||||
{
|
{
|
||||||
episodeSeries = episodeSeries ?? episode.Series;
|
episodeSeries = episodeSeries ?? episode.Series;
|
||||||
if (episodeSeries != null)
|
if (episodeSeries != null)
|
||||||
|
@ -1143,7 +1145,9 @@ namespace Emby.Server.Implementations.Dto
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.ContainsField(ItemFields.SeriesPrimaryImage))
|
// this block will add the series poster for seasons without a poster
|
||||||
|
// TODO maybe remove the if statement entirely
|
||||||
|
//if (options.ContainsField(ItemFields.SeriesPrimaryImage))
|
||||||
{
|
{
|
||||||
series = series ?? season.Series;
|
series = series ?? season.Series;
|
||||||
if (series != null)
|
if (series != null)
|
||||||
|
|
Loading…
Reference in a new issue