Able to save song and cover art to the appropriate paths. Next is saving it to the database

This commit is contained in:
kdeng00
2019-08-22 22:40:49 -04:00
parent 592853695d
commit 764185da7d
17 changed files with 235 additions and 111 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "managers/coverArtManager.h"
#include "utilities/metadata_retriever.h"
Cover coverArtManager::saveCover(const Song& song, std::string& rootPath, const std::string& stockCoverPath)
{
metadata_retriever meta;
Cover cov;
cov.imagePath = rootPath;
cov = meta.update_cover_art(song, cov, stockCoverPath);
cov.songTitle = song.title;
return cov;
}