diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-08-23 08:59:40 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-08-23 08:59:40 -0400 |
| commit | 977f8e970a74536276ba6c91055008bd4c851439 (patch) | |
| tree | 24d0387550417f26f3ce7b36d7d8712b693add96 /MediaBrowser.Controller | |
| parent | 4527a187387295d73568bc3eef18aaad78633dfd (diff) | |
Added VideoType.ISO and trimmed Person output size
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Resolvers/VideoResolver.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Resolvers/VideoResolver.cs b/MediaBrowser.Controller/Resolvers/VideoResolver.cs index cdb33837f3..4b9fcfd39f 100644 --- a/MediaBrowser.Controller/Resolvers/VideoResolver.cs +++ b/MediaBrowser.Controller/Resolvers/VideoResolver.cs @@ -30,9 +30,11 @@ namespace MediaBrowser.Controller.Resolvers {
if (IsVideoFile(args.Path))
{
+ VideoType type = Path.GetExtension(args.Path).EndsWith("", System.StringComparison.OrdinalIgnoreCase) ? VideoType.Iso : VideoType.VideoFile;
+
return new T()
{
- VideoType = VideoType.VideoFile,
+ VideoType = type,
Path = args.Path
};
}
|
