comparison src/track/media.cc @ 317:b1f4d1867ab1

services: VERY initial Kitsu support it only supports user authentication for now, but it's definitely a start.
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 04:07:10 -0400
parents b1f625b0227c
children 1faa72660932
comparison
equal deleted inserted replaced
316:180714442770 317:b1f4d1867ab1
39 bool success = false; 39 bool success = false;
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 std::cout << info.value << std::endl;
45
46 switch (info.type) { 44 switch (info.type) {
47 case animone::MediaInfoType::File: 45 case animone::MediaInfoType::File:
48 vec.push_back(std::filesystem::path(info.value).filename().u8string()); 46 vec.push_back(std::filesystem::path(info.value).filename().u8string());
49 success |= true; 47 success |= true;
50 break; 48 break;