I am retarded

This commit is contained in:
Jacob 2023-08-30 16:28:41 +02:00
parent 1388cdd7dd
commit 927c9ead9a

View file

@ -72,21 +72,27 @@ void getMetadataFromFile(std::string format, std::string str) {
std::cerr << "mcopy: Could not retrieve title; please specify\n> "; std::cerr << "mcopy: Could not retrieve title; please specify\n> ";
std::getline(std::cin, title); std::getline(std::cin, title);
} }
} else if (album.empty()) { }
if (album.empty()) {
album = "Unknown"; album = "Unknown";
if (ask) { if (ask) {
std::cerr << "mcopy: Could not retrieve album; please specify\n> "; std::cerr << "mcopy: Could not retrieve album; please specify\n> ";
std::getline(std::cin, album); std::getline(std::cin, album);
} }
} else if (artist.empty()) { }
if (artist.empty()) {
artist = "Unknown"; artist = "Unknown";
if (ask) { if (ask) {
std::cerr << "mcopy: Could not retrieve artist; please specify\n> "; std::cerr << "mcopy: Could not retrieve artist; please specify\n> ";
std::getline(std::cin, artist); std::getline(std::cin, artist);
} }
} else if (track.empty()) { }
if (track.empty()) {
track = "Unknown"; track = "Unknown";
if (ask) { if (ask) {