예제 #1
0
 /// <summary>
 /// Compute movie hash
 /// </summary>
 /// <returns>The hash as Hexadecimal string</returns>
 public static string ComputeHash(Stream stream)
 {
     byte[] hash = MovieHasher.ComputeMovieHash(stream);
     return(MovieHasher.ToHexadecimal(hash));
 }
예제 #2
0
파일: Utilities.cs 프로젝트: mndambuki/Emby
 /// <summary>
 /// Compute movie hash
 /// </summary>
 /// <param name="fileName">The complete media file path</param>
 /// <returns>The hash as Hexadecimal string</returns>
 public static string ComputeHash(string fileName)
 {
     byte[] hash = MovieHasher.ComputeMovieHash(fileName);
     return(MovieHasher.ToHexadecimal(hash));
 }