chore: enhance output
This commit is contained in:
parent
2e5fc75fee
commit
67cba29a8f
|
@ -35,7 +35,7 @@ void processFile(const fs::path &filePath)
|
||||||
crypt.Dump();
|
crypt.Dump();
|
||||||
crypt.FixMetadata();
|
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)
|
catch (const std::invalid_argument &e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
#include "base64.h"
|
#include "base64.h"
|
||||||
#include "cJSON.h"
|
#include "cJSON.h"
|
||||||
|
#include "color.h"
|
||||||
|
|
||||||
#define TAGLIB_STATIC
|
#define TAGLIB_STATIC
|
||||||
#include "taglib/toolkit/tfile.h"
|
#include "taglib/toolkit/tfile.h"
|
||||||
|
@ -358,7 +359,7 @@ NeteaseCrypt::NeteaseCrypt(std::string const &path)
|
||||||
|
|
||||||
if (n <= 0)
|
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;
|
mMetaData = NULL;
|
||||||
}
|
}
|
||||||
|
@ -408,7 +409,7 @@ NeteaseCrypt::NeteaseCrypt(std::string const &path)
|
||||||
}
|
}
|
||||||
else
|
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);
|
mFile.seekg(cover_frame_len - n, mFile.cur);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue