Example #1
0
            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);
                }
            }
Example #2
0
 public Model(Stream stream, string path) : base(path, 20)
 {
     base._data = Data = new Sha1xFormat(this, stream, path);
     ParseHeaderAndHistory();
     ParseHashes();
 }