浏览代码

Merge pull request #1844 from dkanada/poster

Fix missing image on seasons without posters
Vasily 5 年之前
父节点
当前提交
f1567c64a5
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      Emby.Server.Implementations/Dto/DtoService.cs

+ 6 - 2
Emby.Server.Implementations/Dto/DtoService.cs

@@ -1099,7 +1099,9 @@ namespace Emby.Server.Implementations.Dto
 
                 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;
                     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;
                     if (series != null)