Fixed VideoType detection

pull/702/head
LukePulverenti Luke Pulverenti luke pulverenti 12 years ago
parent 2454b72c93
commit 8d693fd2ab

@ -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()
{

Loading…
Cancel
Save