MediaPortal.Video.Database.IMDBMovie.FetchMatroskaInfo C# (CSharp) Method

FetchMatroskaInfo() private static method

Use for xml recordings
private static FetchMatroskaInfo ( string path, bool pathIsDirectory, IMDBMovie &movie ) : void
path string
pathIsDirectory bool
movie IMDBMovie
return void
    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) { }
    }