own implementation of singleton and logger

This commit is contained in:
faumaray committed 2026-01-19 15:36:21 +03:00
1 parent f6c5bcca39
commit 6aed7b0027
19 files changed
+745 -206

No files matched your search

+6 -3
View File
@@ -26,13 +26,15 @@ namespace definitions {
struct QueueItem {
std::string name;
std::string videoId;
std::string shortUrl;
std::string length;
std::string requester;
std::optional<Streams> streams;
QueueItem() = default;
QueueItem(std::string name, std::string videoId, std::string requested_by, const std::optional<Streams> & streams)
: name{std::move(name)}, videoId(std::move(videoId)), requester{std::move(requested_by)}, streams{streams} {}
QueueItem(std::string name, std::string videoId,std::string shortUrl,std::string length, std::string requested_by, const std::optional<Streams> & streams)
: name{std::move(name)}, videoId(std::move(videoId)),shortUrl(std::move(shortUrl)), length(std::move(length)), requester{std::move(requested_by)}, streams{streams} {}
};
@@ -43,6 +45,7 @@ namespace definitions {
std::string thumbnail;
std::string viewCount;
std::string url;
std::string shortUrl;
std::string videoId;
};
@@ -71,6 +74,6 @@ template <> struct glz::meta<definitions::Streams> {
template <> struct glz::meta<definitions::QueueItem> {
using T = definitions::QueueItem;
static constexpr auto value =
object("name", &T::name, "videoId", &T::videoId, "requester", &T::requester,
object("name", &T::name, "videoId", &T::videoId, "shortUrl", &T::shortUrl, "length", &T::length, "requester", &T::requester,
"streams", &T::streams);
};