Address comments

This commit is contained in:
Bond-009 2020-01-16 15:02:50 +01:00
parent e882b03e81
commit f3a1729964

View File

@ -879,7 +879,10 @@ namespace MediaBrowser.MediaEncoding.Encoder
if (titleNumber.HasValue) if (titleNumber.HasValue)
{ {
var prefix = string.Format("VTS_0{0}_", titleNumber.Value.ToString(CultureInfo.InvariantCulture)); var prefix = string.Format(
CultureInfo.InvariantCulture,
titleNumber.Value >= 10 ? "VTS_{0}_" : "VTS_0{0}_",
titleNumber.Value);
var vobs = allVobs.Where(i => i.Name.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)).ToList(); var vobs = allVobs.Where(i => i.Name.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)).ToList();
if (vobs.Count > 0) if (vobs.Count > 0)
@ -891,7 +894,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
return minSizeVobs.Count == 0 ? vobs.Select(i => i.FullName) : minSizeVobs.Select(i => i.FullName); return minSizeVobs.Count == 0 ? vobs.Select(i => i.FullName) : minSizeVobs.Select(i => i.FullName);
} }
_logger.LogWarning("Could not determine vob file list for {0} using DvdLib. Will scan using file sizes.", video.Path); _logger.LogWarning("Could not determine vob file list for {0} using DvdLib. Will scan using file sizes.", path);
} }
var files = allVobs var files = allVobs