making WEB

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-11 00:45:17 +03:00
1 parent d146f11f02
commit 5c036d91fb
72 files changed
+5875 -1243

No files matched your search

+5 -10
View File
@@ -50,8 +50,9 @@ namespace Echoion::Core
// Get yt-dlp version
[[nodiscard]] std::string getVersion() const;
// Force update yt-dlp to latest version
Api::Result<void> update();
// Force update yt-dlp to latest version; returns the verified
// version string of the freshly installed binary.
Api::Result<std::string> update();
// Execute yt-dlp with given arguments and return output
// (synchronous)
@@ -62,10 +63,6 @@ namespace Echoion::Core
[[nodiscard]] std::future<YtDlpResult>
executeAsync(const std::vector<std::string>& args);
// Execute multiple yt-dlp commands concurrently
[[nodiscard]] std::vector<YtDlpResult> executeBatch(
const std::vector<std::vector<std::string>>& argsList);
// Set cookie options for YouTube authentication
void setCookiesPath(const std::string& path);
void setCookiesFromBrowser(const std::string& browser);
@@ -93,8 +90,8 @@ namespace Echoion::Core
// Download yt-dlp from official source
Api::Result<void> downloadYtDlp();
// Make executable executable (Unix only)
Api::Result<void> makeExecutable();
// Make the given file executable (Unix only)
Api::Result<void> makeExecutable(const std::filesystem::path& path);
// Check if update is needed (older than 7 days)
[[nodiscard]] bool shouldUpdate() const;
@@ -135,8 +132,6 @@ namespace Echoion::Core
std::unique_ptr<Void::Concurrency::ThreadPool> pool_;
// yt-dlp download URLs
static constexpr std::string_view YTDLP_VERSION_URL =
"https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest";
static constexpr std::string_view YTDLP_DOWNLOAD_LINUX =
"https://github.com/yt-dlp/yt-dlp/releases/latest/download/"
"yt-dlp";