Browse Source

Fixed VideoType detection

LukePulverenti Luke Pulverenti luke pulverenti 13 years ago
parent
commit
8d693fd2ab
1 changed files with 1 additions and 1 deletions
  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()
                     {