Fixed bug that caused a failure in retrieving records. Empty directories are deleted when deleting a song. If the song contains the stock cover art, the stock cover art will not be deleted

This commit is contained in:
amazing-username
2019-08-27 20:13:18 +00:00
parent ed6f98eb5a
commit d0d1008044
2 changed files with 12 additions and 4 deletions
+2
View File
@@ -174,6 +174,7 @@ std::vector<Song> songRepository::parseRecords(MYSQL_RES* results)
break;
case 7:
song.songPath = row[i];
break;
case 8:
song.coverArtId = std::stoi(row[i]);
break;
@@ -221,6 +222,7 @@ Song songRepository::parseRecord(MYSQL_RES* results)
break;
case 8:
song.coverArtId = std::stoi(row[i]);
break;
}
}
std::cout << "done parsing record" << std::endl;