#93: Making some changes to the process of saving a song to the filesystem

This commit is contained in:
kdeng00
2024-07-18 15:59:51 -04:00
parent c592b6dfa5
commit 08a76007b7
+3
View File
@@ -224,11 +224,14 @@ public class SongManager : BaseManager
_logger.Info("Temporary song path: {0}", tempPath);
if (!System.IO.File.Exists(tempPath))
{
using (var filestream = new FileStream(tempPath, FileMode.Create))
{
_logger.Info("Saving song to temporary directory");
songFile.CopyTo(filestream);
}
}
var coverMgr = new CoverArtManager(_config);
var coverArt = coverMgr.SaveCoverArt(coverArtData, song);