aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-01 16:56:26 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-01 16:56:26 -0400
commit324c6dc8db489cc19ab7ef75f458b68e193f9830 (patch)
treec9390cc36bbaee9887988abd09fedc99630a0716
parentad3965a76992fe13e92a244fd70c08bdfb8d5191 (diff)
update embedded metadata extraction
-rw-r--r--MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
index 621510028..e1ab61cbb 100644
--- a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
+++ b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
@@ -444,7 +444,11 @@ namespace MediaBrowser.Providers.MediaInfo
{
if (string.IsNullOrWhiteSpace(video.Name) || string.Equals(video.Name, Path.GetFileNameWithoutExtension(video.Path), StringComparison.OrdinalIgnoreCase))
{
- video.Name = data.Name;
+ // 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;
+ }
}
}