diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-09 00:55:52 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-09 00:55:52 -0500 |
| commit | bbefb03bcf5b1a43691f14858d30ecc603b55c3d (patch) | |
| tree | defd44005d4da7518e8f5477700c47cb17f2a4c9 /MediaBrowser.Server.Implementations/Library | |
| parent | da7eac4336b58f67c6b20f7e6b5fc81c413c18d1 (diff) | |
| parent | fe882b46e7468ed2b82734f25e63026945c93ca1 (diff) | |
Merge branch 'beta' of https://github.com/MediaBrowser/Emby into beta
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs | 17 | ||||
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs | 6 |
2 files changed, 22 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs index fd74b68b8..9ebf82c02 100644 --- a/MediaBrowser.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs +++ b/MediaBrowser.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs @@ -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) diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs index 39b62968f..23424bf3c 100644 --- a/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs +++ b/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs @@ -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) |
