浏览代码

Fixed VideoType detection

LukePulverenti Luke Pulverenti luke pulverenti 13 年之前
父节点
当前提交
8d693fd2ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Controller/Resolvers/VideoResolver.cs

+ 1 - 1
MediaBrowser.Controller/Resolvers/VideoResolver.cs

@@ -30,7 +30,7 @@ namespace MediaBrowser.Controller.Resolvers
             {
                 if (IsVideoFile(args.Path))
                 {
-                    VideoType type = Path.GetExtension(args.Path).EndsWith("", System.StringComparison.OrdinalIgnoreCase) ? VideoType.Iso : VideoType.VideoFile;
+                    VideoType type = Path.GetExtension(args.Path).EndsWith("iso", System.StringComparison.OrdinalIgnoreCase) ? VideoType.Iso : VideoType.VideoFile;
 
                     return new T()
                     {