Cover art record saved in the database. Next is to save the song record to the database and then try to download the song afterwards
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include "database/songRepository.h"
|
||||
#include "managers/coverArtManager.h"
|
||||
#include "managers/directory_manager.h"
|
||||
#include "utilities/metadata_retriever.h"
|
||||
@@ -34,6 +35,10 @@ void song_manager::saveSong(Song& song)
|
||||
stockCoverPath.append("/CoverArt.png");
|
||||
|
||||
auto cov = covMgr.saveCover(song, coverRootPath, stockCoverPath);
|
||||
song.coverArtId = cov.id;
|
||||
|
||||
songRepository songRepo(exe_path);
|
||||
songRepo.saveRecord(song);
|
||||
}
|
||||
|
||||
void song_manager::printSong(const Song& song)
|
||||
|
||||
Reference in New Issue
Block a user