Пример #1
0
        private void UpdateSongTags(SongModel song)
        {
            var songPath     = storageOrganizer.GetSongFilePath(song);
            var songFileName = fileStorage.CheckoutFile(songPath);

            var tagData = new SongTagData(song);

            songTagger.SetTagData(songFileName, tagData);

            song.Size     = CalculateFileSize(songFileName);
            song.Checksum = CalculateFileChecksum(songFileName);

            fileStorage.CommitFile(songFileName);
        }