#93: Added more code to save flac files

This commit is contained in:
kdeng00
2024-07-23 19:58:20 -04:00
parent 43b2bf27be
commit 0f70ca6aaa
2 changed files with 29 additions and 3 deletions
+7 -3
View File
@@ -183,9 +183,13 @@ public class MetadataRetriever
{
Console.WriteLine("Fetching image");
var tag = TagLib.File.Create(song.SongPath());
byte[] imgBytes = tag.Tag.Pictures[0].Data.Data;
return imgBytes;
if (tag.Tag.Pictures.Count() == 0)
{
return [];
}
return tag.Tag.Pictures[0].Data.Data;
}
catch (Exception ex)
{