#94: Saving the file type of cover art, but there is still some work to do

The filename of cover art is hard coded to have the png extension. Need to correct this
This commit is contained in:
kdeng00
2024-06-20 20:20:47 -04:00
parent 562bc87822
commit 3dd143fa4d
7 changed files with 89 additions and 14 deletions
+9
View File
@@ -232,6 +232,15 @@ public class SongManager : BaseManager
var coverMgr = new CoverArtManager(_config);
var coverArt = coverMgr.SaveCoverArt(coverArtData, song);
MetadataRetriever metaData = new MetadataRetriever();
coverArt.Type = metaData.CoverArtFileExtensionType(coverArt);
if (string.IsNullOrEmpty(coverArt.Type))
{
Console.WriteLine("File type is empty");
Console.WriteLine($"Directory: {coverArt.Directory}");
Console.WriteLine($"Filename: {coverArt.Filename}");
}
DirectoryManager dirMgr = new DirectoryManager(_config, song);
dirMgr.CreateDirectory();