mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Enable nullable for more files and add tests
Adds basic tests for FFProbeVideoInfo.CreateDummyChapters Fixed error message CreateDummyChapters instead of reporting the total minutes it only reported the minute component
This commit is contained in:
@@ -1971,18 +1971,7 @@ namespace Emby.Server.Implementations.Data
|
||||
if (reader.TryGetString(2, out var imagePath))
|
||||
{
|
||||
chapter.ImagePath = imagePath;
|
||||
|
||||
if (!string.IsNullOrEmpty(chapter.ImagePath))
|
||||
{
|
||||
try
|
||||
{
|
||||
chapter.ImageTag = _imageProcessor.GetImageCacheTag(item, chapter);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError(ex, "Failed to create image cache tag.");
|
||||
}
|
||||
}
|
||||
chapter.ImageTag = _imageProcessor.GetImageCacheTag(item, chapter);
|
||||
}
|
||||
|
||||
if (reader.TryReadDateTime(3, out var imageDateModified))
|
||||
|
||||
Reference in New Issue
Block a user