1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-13 14:39:47 +00:00

Print human-readable autodetected media type.

This commit is contained in:
King_DuckZ 2015-12-10 16:31:11 +00:00
parent 6c30621400
commit 10b9be1f85
4 changed files with 51 additions and 2 deletions

View file

@ -78,8 +78,10 @@ int main (int parArgc, char* parArgv[]) {
if (0 == vm.count("type")) {
std::cout << "Analyzing disc... ";
try {
set_type = din::guess_media_type(std::string(search_path));
std::cout << "Setting type to " << set_type << '\n';
const auto guessed_type = din::guess_media_type(std::string(search_path));
set_type = guessed_type;
std::cout << "Setting type to " << set_type << " ("
<< dinlib::media_type_to_str(guessed_type) << ")\n";
}
catch (const std::runtime_error& e) {
std::cout << '\n';