chore: enhance output

This commit is contained in:
TaurusXin 2024-09-13 10:58:29 +08:00
parent 2e5fc75fee
commit 67cba29a8f
Signed by: taurusxin
GPG Key ID: C334DCA04AC2D2CC
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ void processFile(const fs::path &filePath)
crypt.Dump();
crypt.FixMetadata();
std::cout << BOLDGREEN << "Done: " << RESET << "'" << crypt.dumpFilepath().u8string() << "'" << std::endl;
std::cout << BOLDGREEN << "[Done] " << RESET << "'" << filePath.u8string() << "' -> '" << crypt.dumpFilepath().u8string() << "'" << std::endl;
}
catch (const std::invalid_argument &e)
{

View File

@ -2,6 +2,7 @@
#include "aes.h"
#include "base64.h"
#include "cJSON.h"
#include "color.h"
#define TAGLIB_STATIC
#include "taglib/toolkit/tfile.h"
@ -358,7 +359,7 @@ NeteaseCrypt::NeteaseCrypt(std::string const &path)
if (n <= 0)
{
std::cout << "[Warn] " << path << " missing metadata infomation can't fix some infomation!" << std::endl;
std::cout << BOLDYELLOW << "[Warn] " << RESET << "'" << path << "' missing metadata infomation can't fix some infomation!" << std::endl;
mMetaData = NULL;
}
@ -408,7 +409,7 @@ NeteaseCrypt::NeteaseCrypt(std::string const &path)
}
else
{
std::cout << "[Warn] " << path << " missing album can't fix album image!" << std::endl;
std::cout << BOLDYELLOW << "[Warn] " << RESET << "'" << path << "' missing album can't fix album image!" << std::endl;
}
mFile.seekg(cover_frame_len - n, mFile.cur);
}