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

* #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

* #94: Added a TODO

* #94: Corrected file extension being saved in the db

* Cleanup

* Saving databasescripts
This commit was merged in pull request #100.
This commit is contained in:
Kun Deng authored and GitHub committed 2024-06-21 20:26:44 -04:00
1 parent 562bc87822
commit 71656aa940
8 files changed
+110 -33

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ public class CoverArtController : BaseController
{
_logger.LogInformation("Found cover art record");
var coverArtBytes = System.IO.File.ReadAllBytes(
coverArt.ImagePath);
coverArt.ImagePath());
return File(coverArtBytes, "application/x-msdownload",
coverArt.SongTitle);