mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update embedded metadata extraction
This commit is contained in:
parent
ad3965a769
commit
324c6dc8db
@ -444,7 +444,11 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(video.Name) || string.Equals(video.Name, Path.GetFileNameWithoutExtension(video.Path), StringComparison.OrdinalIgnoreCase))
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user