Minor style fixes
This commit is contained in:
parent
4a700778e3
commit
29ff80d69c
|
@ -175,7 +175,7 @@ namespace Emby.Naming.Video
|
||||||
return videos;
|
return videos;
|
||||||
}
|
}
|
||||||
|
|
||||||
var folderName = Path.GetFileName(Path.GetDirectoryName(videos.First().Files.First().Path));
|
var folderName = Path.GetFileName(Path.GetDirectoryName(videos[0].Files[0].Path));
|
||||||
if (!string.IsNullOrEmpty(folderName))
|
if (!string.IsNullOrEmpty(folderName))
|
||||||
{
|
{
|
||||||
var videosMatchingFolder = new List<VideoInfo>();
|
var videosMatchingFolder = new List<VideoInfo>();
|
||||||
|
@ -203,13 +203,13 @@ namespace Emby.Naming.Video
|
||||||
// So if there's at least one video file matching the folder name, skip the rest.
|
// So if there's at least one video file matching the folder name, skip the rest.
|
||||||
if (videosMatchingFolder.Count > 0)
|
if (videosMatchingFolder.Count > 0)
|
||||||
{
|
{
|
||||||
var primary = videosMatchingFolder.First();
|
var primary = videosMatchingFolder[0];
|
||||||
var remainingVideos = videosMatchingFolder.Skip(1);
|
var remainingVideos = videosMatchingFolder.Skip(1);
|
||||||
var videoInfo = new VideoInfo
|
var videoInfo = new VideoInfo
|
||||||
{
|
{
|
||||||
Name = folderName,
|
Name = folderName,
|
||||||
Year = videosMatchingFolder.First().Year,
|
Year = primary.Year,
|
||||||
Files = videosMatchingFolder.First().Files,
|
Files = primary.Files,
|
||||||
AlternateVersions = new List<VideoFileInfo>(),
|
AlternateVersions = new List<VideoFileInfo>(),
|
||||||
Extras = primary.Extras
|
Extras = primary.Extras
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user