mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
don't try to extract images if a video doesn't have any known video streams
This commit is contained in:
@@ -51,7 +51,7 @@ namespace MediaBrowser.Controller.MediaInfo
|
||||
/// The _logger
|
||||
/// </summary>
|
||||
private readonly Kernel _kernel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The _logger
|
||||
/// </summary>
|
||||
@@ -591,6 +591,12 @@ namespace MediaBrowser.Controller.MediaInfo
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
|
||||
// Can't extract images if there are no video streams
|
||||
if (video.MediaStreams == null || video.MediaStreams.All(m => m.Type != MediaStreamType.Video))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var changesMade = false;
|
||||
|
||||
foreach (var chapter in video.Chapters)
|
||||
|
||||
Reference in New Issue
Block a user