1 parent
df99b6ea7f
commit
d146f11f02
63 files changed
+8331
-2709
No files matched your search
@@ -34,6 +34,13 @@ namespace Echoion::Core
|
||||
// Initialize - checks for yt-dlp and downloads if needed
|
||||
Api::Result<void> initialize();
|
||||
|
||||
// Gate the periodic (7-day) background self-update. Configured
|
||||
// via features.enableAutoUpdateCheck; set BEFORE initialize().
|
||||
void setAutoUpdateEnabled(bool enabled)
|
||||
{
|
||||
autoUpdateEnabled_ = enabled;
|
||||
}
|
||||
|
||||
// Get the path to the yt-dlp executable
|
||||
[[nodiscard]] std::filesystem::path getExecutablePath() const;
|
||||
|
||||
@@ -109,6 +116,9 @@ namespace Echoion::Core
|
||||
std::shared_ptr<NetworkClient> networkClient_;
|
||||
std::filesystem::path executablePath_;
|
||||
std::atomic<bool> initialized_{false};
|
||||
std::atomic<bool> autoUpdateEnabled_{true};
|
||||
// Background download/verify (joined in the destructor).
|
||||
std::jthread initThread_;
|
||||
mutable std::mutex mutex_;
|
||||
|
||||
// Cookie configuration for YouTube authentication
|
||||
|
||||
Reference in new issue
Block a user