comparison 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
comparison
equal deleted inserted replaced
153:bd439dd6ffc5 154:d43d68408d3c
6 #include "core/strings.h" 6 #include "core/strings.h"
7 #include "core/session.h" 7 #include "core/session.h"
8 #include <string> 8 #include <string>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
11 #include <iostream> 11 #include <filesystem>
12 #include <QFile> 12 #include <QFile>
13 #include <QTextStream> 13 #include <QTextStream>
14 14
15 namespace Track { 15 namespace Track {
16 namespace Media { 16 namespace Media {
40 40
41 for (const auto& result : results) { 41 for (const auto& result : results) {
42 for (const auto& media : result.media) { 42 for (const auto& media : result.media) {
43 for (const auto& info : media.information) { 43 for (const auto& info : media.information) {
44 switch (info.type) { 44 switch (info.type) {
45 case 45 case animia::MediaInfoType::File:
46 case animia::MediaInfoType::Title:
47 vec.push_back(std::filesystem::path(info.value).filename().string());
48 success |= true;
46 } 49 }
47 std::cout << static_cast<int>(info.type) << ": " << info.value << std::endl;
48 vec.push_back(info.value);
49 success |= true;
50 } 50 }
51 } 51 }
52 } 52 }
53 53
54 return success; 54 return success;