Przeglądaj źródła

Fix broken chapter image placeholders when no image is present (#14230)

theguymadmax 6 dni temu
rodzic
commit
4f3b49472a

+ 6 - 1
Jellyfin.Server.Implementations/Item/ChapterRepository.cs

@@ -112,7 +112,12 @@ public class ChapterRepository : IChapterRepository
             ImagePath = chapterInfo.ImagePath,
             ImagePath = chapterInfo.ImagePath,
             Name = chapterInfo.Name,
             Name = chapterInfo.Name,
         };
         };
-        chapterEntity.ImageTag = _imageProcessor.GetImageCacheTag(baseItemPath, chapterEntity.ImageDateModified);
+
+        if (!string.IsNullOrEmpty(chapterInfo.ImagePath))
+        {
+            chapterEntity.ImageTag = _imageProcessor.GetImageCacheTag(baseItemPath, chapterEntity.ImageDateModified);
+        }
+
         return chapterEntity;
         return chapterEntity;
     }
     }
 }
 }