Mercurial > minori
comparison src/track/media.cc @ 393:963047512d34
*: clang-format
| author | Paper <paper@tflc.us> |
|---|---|
| date | Fri, 07 Nov 2025 07:16:15 -0500 |
| parents | 47c9f8502269 |
| children |
comparison
equal
deleted
inserted
replaced
| 392:a72d6d7b3568 | 393:963047512d34 |
|---|---|
| 46 | 46 |
| 47 for (const auto &result : results) { | 47 for (const auto &result : results) { |
| 48 for (const auto &media : result.media) { | 48 for (const auto &media : result.media) { |
| 49 for (const auto &info : media.information) { | 49 for (const auto &info : media.information) { |
| 50 switch (info.type) { | 50 switch (info.type) { |
| 51 case animone::MediaInfoType::File: | 51 case animone::MediaInfoType::File: |
| 52 vec.push_back(std::filesystem::path(info.value).filename().u8string()); | 52 vec.push_back(std::filesystem::path(info.value).filename().u8string()); |
| 53 success |= true; | 53 success |= true; |
| 54 break; | 54 break; |
| 55 case animone::MediaInfoType::Title: | 55 case animone::MediaInfoType::Title: |
| 56 vec.push_back(info.value); | 56 vec.push_back(info.value); |
| 57 success |= true; | 57 success |= true; |
| 58 break; | 58 break; |
| 59 case animone::MediaInfoType::Tab: break; | 59 case animone::MediaInfoType::Tab: |
| 60 case animone::MediaInfoType::Url: break; | 60 break; |
| 61 default: break; | 61 case animone::MediaInfoType::Url: |
| 62 break; | |
| 63 default: | |
| 64 break; | |
| 62 } | 65 } |
| 63 } | 66 } |
| 64 } | 67 } |
| 65 } | 68 } |
| 66 | 69 |
