public static MediaInfoResult GetMediaInfo(string fileName, bool forceRefresh, bool useKodi) { MediaInfoResult vidInfo = new MediaInfoResult(); MediaInfoReader.ReadMediaInfo(fileName, forceRefresh, ref vidInfo, useKodi); return vidInfo; }
/// <summary> /// Get all the hash info and video/audio info for a video file /// </summary> /// <param name="fileName"></param> /// <param name="hashInfo"></param> /// <param name="vidInfo"></param> public static void GetVideoInfo(string fileName, ref Hashes hashInfo, ref MediaInfoResult vidInfo, bool forceRefresh) { hashInfo = Hasher.CalculateHashes(fileName, null); if (vidInfo == null) vidInfo = new MediaInfoResult(); MediaInfoReader.ReadMediaInfo(fileName, forceRefresh, ref vidInfo); }