Esempio n. 1
0
        public static MediaInfoResult GetMediaInfo(string fileName, bool forceRefresh, bool useKodi)
        {
            MediaInfoResult vidInfo = new MediaInfoResult();
			MediaInfoReader.ReadMediaInfo(fileName, forceRefresh, ref vidInfo, useKodi);
			return vidInfo;
		}
Esempio n. 2
0
		/// <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);
		}