Add HDDVD recognition

This commit is contained in:
ebr11 Eric Reed spam 2012-09-18 16:20:27 -04:00
parent 0adc77209c
commit 68de4a6568
5 changed files with 15 additions and 2 deletions

View File

@ -66,6 +66,7 @@ namespace MediaBrowser.Controller.IO
//filtered - see if it is one of our "indicator" folders and mark it now - no reason to search for it again
args.IsBDFolder |= file.cFileName.Equals("bdmv", StringComparison.OrdinalIgnoreCase);
args.IsDVDFolder |= file.cFileName.Equals("video_ts", StringComparison.OrdinalIgnoreCase);
args.IsHDDVDFolder |= file.cFileName.Equals("hvdvd_ts", StringComparison.OrdinalIgnoreCase);
}
}
}

View File

@ -37,6 +37,7 @@ namespace MediaBrowser.Controller.Library
public bool IsBDFolder { get; set; }
public bool IsDVDFolder { get; set; }
public bool IsHDDVDFolder { get; set; }
public WIN32_FIND_DATA? GetFileSystemEntry(string path)
{

View File

@ -24,7 +24,9 @@ namespace MediaBrowser.Controller.Resolvers
"video_ts",
"audio_ts",
"ps3_update",
"ps3_vprm"
"ps3_vprm",
"adv_obj",
"hvdvd_ts"
};
/// <summary>
/// Determines whether a path should be resolved or ignored entirely - called before we even look at the contents

View File

@ -79,6 +79,14 @@ namespace MediaBrowser.Controller.Resolvers.Movies
VideoType = VideoType.BluRay
};
}
else if (args.IsHDDVDFolder)
{
return new Movie()
{
Path = args.Path,
VideoType = VideoType.HdDvd
};
}
// Loop through each child file/folder and see if we find a video
foreach (var child in args.FileSystemChildren)

View File

@ -6,6 +6,7 @@ namespace MediaBrowser.Model.Entities
VideoFile,
Iso,
Dvd,
BluRay
BluRay,
HdDvd
}
}