|
|
|
@ -443,10 +443,14 @@ namespace MediaBrowser.Providers.MediaInfo
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(data.Name))
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(video.Name) || string.Equals(video.Name, Path.GetFileNameWithoutExtension(video.Path), StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
// Don't use the embedded name for extras because it will often be the same name as the movie
|
|
|
|
|
if (!video.ExtraType.HasValue && !video.IsOwnedItem)
|
|
|
|
|
{
|
|
|
|
|
video.Name = data.Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If we don't have a ProductionYear try and get it from PremiereDate
|
|
|
|
|
if (video.PremiereDate.HasValue && !video.ProductionYear.HasValue)
|
|
|
|
|