public Model(Stream stream, string digPath, LogEacFormat log, IList <Mp3Format.Model> mp3s, string signature) : base(digPath, 16) { base._data = Data = new Sha1xFormat(this, stream, digPath); Data.fbs = stream; CreateHistory(); HistoryModel.Add("ripped", signature); HashedModel.AddActual(log.Name, log.FileSHA1); foreach (var mp3Model in mp3s) { HashedModel.AddActual(mp3Model.Data.Name, mp3Model.Data.MediaSHA1, HashStyle.Media); } }
public Model(Stream stream, string md5Path, LogEacFormat log, string logName, M3uFormat m3u, string signature) : base(md5Path, 16) { base._data = Data = new Md5Format(this, stream, md5Path); Data.fbs = stream; CreateHistory(); HistoryModel.Add("ripped", signature); HashedModel.AddActual(m3u.Name, m3u.FileMD5); HashedModel.AddActual(logName, log.FileMD5); foreach (var track in log.Tracks.Items) { HashedModel.AddActual(track.Match.Name, track.Match.FileMD5); } }