Mercurial > minori
diff src/track/media.cc @ 152:8700806c2cc2
dep/animia: awesome new breaking changes!
I'm so tired
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 15 Nov 2023 02:34:59 -0500 |
parents | e41505d24733 |
children | bd439dd6ffc5 |
line wrap: on
line diff
--- a/src/track/media.cc Tue Nov 14 16:31:21 2023 -0500 +++ b/src/track/media.cc Wed Nov 15 02:34:59 2023 -0500 @@ -41,6 +41,7 @@ for (const auto& result : results) { for (const auto& media : result.media) { for (const auto& info : media.information) { + std::cout << static_cast<int>(info.type) << ": " << info.value << std::endl; vec.push_back(info.value); success |= true; } @@ -50,9 +51,8 @@ return success; } +/* this sucks. use anitomy directly like a real man */ std::unordered_map<std::string, std::string> GetMapFromElements(const anitomy::Elements& elements) { - /* there are way more than this in anitomy, but we only need basic information - I also just prefer using maps than using the ".get()" stuff which is why I'm doing this */ std::unordered_map<std::string, std::string> ret; ret["title"] = Strings::ToUtf8String(elements.get(anitomy::kElementAnimeTitle));