#90: Adding functionality to download cover art (#97)

* Added endpoint to download cover art

* Code cleanup

* More cleanup
This commit was merged in pull request #97.
This commit is contained in:
Kun Deng
2024-06-16 18:28:08 -04:00
committed by GitHub
parent 23c50de468
commit 270b7d059c
18 changed files with 18 additions and 105 deletions
+2 -7
View File
@@ -1,10 +1,3 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using Newtonsoft.Json;
namespace Icarus.Models;
@@ -33,5 +26,7 @@ public class CoverArt
return (flag == 0) ? filename : $"{filename}{extension}";
}
public async Task<byte[]> GetData() => await File.ReadAllBytesAsync(this.ImagePath);
#endregion
}