Skip to content

The Free Software Media System - Server Backend & API

Fixed VideoType detection

LukePulverenti Luke Pulverenti luke pulverenti8d693fd2ab2f
diff --git a/MediaBrowser.Controller/Resolvers/VideoResolver.cs b/MediaBrowser.Controller/Resolvers/VideoResolver.cs
index 4b9fcfd39f..ee2fc62f35 100644
--- a/MediaBrowser.Controller/Resolvers/VideoResolver.cs
+++ b/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()
{