Some clean up for insert song records into the database

This commit is contained in:
kdeng00
2019-08-25 14:54:09 -04:00
parent d54715ac25
commit 2145adb039
6 changed files with 143 additions and 71 deletions
-2
View File
@@ -25,11 +25,9 @@ void song_manager::saveSong(Song& song)
auto data = std::move(song.data);
song = meta.retrieve_metadata(song.songPath);
song.data = std::move(data);
printSong(song);
coverArtManager covMgr(exe_path);
auto coverRootPath = directory_manager::pathConfigContent(exe_path)["cover_root_path"].get<std::string>();
//const nlohmann::json databaseConfig = directory_manager::databaseConfigContent(exe_path);
auto stockCoverPath = directory_manager::configPath(exe_path);
stockCoverPath.append("/CoverArt.png");