diff src/track/media.cc @ 154:d43d68408d3c

dep/animia: fix XnuFdTools also we use anitomy directly now. HG Enter commit message. Lines beginning with 'HG:' are removed.
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 14:14:17 -0500
parents bd439dd6ffc5
children 03b444cbe55f
line wrap: on
line diff
--- a/src/track/media.cc	Wed Nov 15 13:28:18 2023 -0500
+++ b/src/track/media.cc	Wed Nov 15 14:14:17 2023 -0500
@@ -8,7 +8,7 @@
 #include <string>
 #include <unordered_map>
 #include <vector>
-#include <iostream>
+#include <filesystem>
 #include <QFile>
 #include <QTextStream>
 
@@ -42,11 +42,11 @@
 		for (const auto& media : result.media) {
 			for (const auto& info : media.information) {
 				switch (info.type) {
-					case 
+					case animia::MediaInfoType::File:
+					case animia::MediaInfoType::Title:
+						vec.push_back(std::filesystem::path(info.value).filename().string());
+						success |= true;
 				}
-				std::cout << static_cast<int>(info.type) << ": " << info.value << std::endl;
-				vec.push_back(info.value);
-				success |= true;
 			}
 		}
 	}