diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-09 22:44:58 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-09 22:44:58 -0400 |
| commit | ff6867b816d447c8aaaad3fffe690a34fcb07207 (patch) | |
| tree | bca264f265f6f30a2310b4bdd92d79b2c9f3d30d | |
| parent | b104c5f707e4f327172a5862b35b1322ebf5b152 (diff) | |
extract chapter images from single file blurays
| -rw-r--r-- | MediaBrowser.Controller/MediaInfo/FFMpegManager.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs b/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs index 27713bbe6..4700f41f5 100644 --- a/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs +++ b/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs @@ -175,12 +175,20 @@ namespace MediaBrowser.Controller.MediaInfo { if (extractImages) { - // Disable for now on folder rips - if (video.VideoType != VideoType.VideoFile && video.VideoType != VideoType.Dvd) + if (video.VideoType == VideoType.HdDvd || video.VideoType == VideoType.Iso) { continue; } + if (video.VideoType == VideoType.BluRay) + { + // Can only extract reliably on single file blurays + if (video.PlayableStreamFileNames == null || video.PlayableStreamFileNames.Count != 1) + { + continue; + } + } + // Add some time for the first chapter to make sure we don't end up with a black image var time = chapter.StartPositionTicks == 0 ? TimeSpan.FromTicks(Math.Min(FirstChapterTicks, video.RunTimeTicks ?? 0)) : TimeSpan.FromTicks(chapter.StartPositionTicks); |
