mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 09:38:25 +00:00
fix: use movie.nfo first when <filename>.nfo also exists (jellyfin/jellyfin#1558)
This commit is contained in:
parent
86c96c8e26
commit
cb8a8c3ef4
1 changed files with 2 additions and 2 deletions
|
|
@ -60,13 +60,13 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||
}
|
||||
else
|
||||
{
|
||||
yield return Path.ChangeExtension(item.Path, ".nfo");
|
||||
|
||||
// only allow movie object to read movie.nfo, not owned videos (which will be itemtype video, not movie)
|
||||
if (!item.IsInMixedFolder && item.ItemType == typeof(Movie))
|
||||
{
|
||||
yield return Path.Combine(item.ContainingFolderPath, "movie.nfo");
|
||||
}
|
||||
|
||||
yield return Path.ChangeExtension(item.Path, ".nfo");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue