private static void FetchMatroskaInfo(string path, bool pathIsDirectory, ref IMDBMovie movie)
{
try
{
string xmlFile = string.Empty;
if (!pathIsDirectory)
{
xmlFile = System.IO.Path.ChangeExtension(path, ".xml");
}
MatroskaTagInfo minfo = MatroskaTagHandler.Fetch(xmlFile);
if (minfo != null)
{
movie.Title = minfo.Title;
movie.Plot = minfo.Description;
movie.Genre = minfo.Genre;
}
}
catch (Exception) { }
}