update iso naming

This commit is contained in:
Luke Pulverenti 2016-02-08 23:09:29 -05:00
parent e0e34ddf6b
commit dcff480c6e
2 changed files with 22 additions and 1 deletions

View File

@ -191,6 +191,23 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers
video.IsHD = true;
}
}
SetIsoType(video);
}
protected void SetIsoType(Video video)
{
if (video.VideoType == VideoType.Iso)
{
if (video.Path.IndexOf("dvd", StringComparison.OrdinalIgnoreCase) != -1)
{
video.IsoType = IsoType.Dvd;
}
else if (video.Path.IndexOf("bluray", StringComparison.OrdinalIgnoreCase) != -1)
{
video.IsoType = IsoType.BluRay;
}
}
}
protected void Set3DFormat(Video video, bool is3D, string format3D)

View File

@ -479,7 +479,7 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
return null;
}
return new T
var returnVideo = new T
{
Path = folderPaths[0],
@ -489,6 +489,10 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
Name = result.Stacks[0].Name
};
SetIsoType(returnVideo);
return returnVideo;
}
private bool IsInvalid(Folder parent, string collectionType)