Mercurial > minori
comparison src/track/media.cc @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 02 Jan 2024 06:05:06 -0500 |
parents | 649786bae914 |
children | d030b30526d5 2f5a9247e501 |
comparison
equal
deleted
inserted
replaced
201:8f6f8dd2eb23 | 202:71832ffe425a |
---|---|
1 #include "track/media.h" | 1 #include "track/media.h" |
2 #include "track/constants.h" | |
3 #include "animia.h" | |
4 #include "anitomy/anitomy.h" | |
5 #include "core/filesystem.h" | 2 #include "core/filesystem.h" |
6 #include "core/strings.h" | 3 #include "core/strings.h" |
7 #include "core/session.h" | 4 #include "core/session.h" |
5 | |
6 #include <QFile> | |
7 #include <QTextStream> | |
8 | |
8 #include <string> | 9 #include <string> |
9 #include <unordered_map> | 10 #include <unordered_map> |
10 #include <vector> | 11 #include <vector> |
11 #include <filesystem> | 12 #include <filesystem> |
12 #include <QFile> | 13 |
13 #include <QTextStream> | 14 #include "animia.h" |
14 | 15 |
15 namespace Track { | 16 namespace Track { |
16 namespace Media { | 17 namespace Media { |
17 | 18 |
18 static bool GetCurrentlyPlayingResults(std::vector<animia::Result>& results) { | 19 static bool GetCurrentlyPlayingResults(std::vector<animia::Result>& results) { |
44 switch (info.type) { | 45 switch (info.type) { |
45 case animia::MediaInfoType::File: | 46 case animia::MediaInfoType::File: |
46 case animia::MediaInfoType::Title: | 47 case animia::MediaInfoType::Title: |
47 vec.push_back(std::filesystem::path(info.value).filename().string()); | 48 vec.push_back(std::filesystem::path(info.value).filename().string()); |
48 success |= true; | 49 success |= true; |
50 default: | |
51 break; | |
49 } | 52 } |
50 } | 53 } |
51 } | 54 } |
52 } | 55 } |
53 | 56 |