Fixed VideoType detection

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-08-23 15:15:36 -04:00
parent 2454b72c93
commit 8d693fd2ab

View File

@ -30,7 +30,7 @@ namespace MediaBrowser.Controller.Resolvers
{ {
if (IsVideoFile(args.Path)) 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() return new T()
{ {