From 927c9ead9adb159a391cfed48588c64bc0f2acc2 Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 30 Aug 2023 16:28:41 +0200 Subject: [PATCH] I am retarded --- mcopy.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mcopy.cpp b/mcopy.cpp index b274ada..48610c9 100644 --- a/mcopy.cpp +++ b/mcopy.cpp @@ -72,21 +72,27 @@ void getMetadataFromFile(std::string format, std::string str) { std::cerr << "mcopy: Could not retrieve title; please specify\n> "; std::getline(std::cin, title); } - } else if (album.empty()) { + } + + if (album.empty()) { album = "Unknown"; if (ask) { std::cerr << "mcopy: Could not retrieve album; please specify\n> "; std::getline(std::cin, album); } - } else if (artist.empty()) { + } + + if (artist.empty()) { artist = "Unknown"; if (ask) { std::cerr << "mcopy: Could not retrieve artist; please specify\n> "; std::getline(std::cin, artist); } - } else if (track.empty()) { + } + + if (track.empty()) { track = "Unknown"; if (ask) {