瀏覽代碼

add comment explaining a bug fix

dkanada 5 年之前
父節點
當前提交
e006b7f1e1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Emby.Server.Implementations/Dto/DtoService.cs

+ 4 - 0
Emby.Server.Implementations/Dto/DtoService.cs

@@ -1099,6 +1099,8 @@ namespace Emby.Server.Implementations.Dto
 
                 Series episodeSeries = null;
 
+                // 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;
@@ -1143,6 +1145,8 @@ namespace Emby.Server.Implementations.Dto
                     }
                 }
 
+                // 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;