Able to save song and cover art to the appropriate paths. Next is saving it to the database
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user