fix(security): harden sidecar and media processing lifecycles

This commit is contained in:
NimBold
2026-06-17 09:45:31 +03:30
parent 7c7317adc9
commit 58f4a8a14d
8 changed files with 135 additions and 21 deletions
+4
View File
@@ -7,6 +7,9 @@ use ts_rs::TS;
#[ts(export, export_to = "../../src/bindings/")]
pub enum DownloadStatus {
Downloading,
/// Post-download media processing such as yt-dlp/ffmpeg merging or
/// extraction. The queue permit is still held.
Processing,
Paused,
Completed,
Failed,
@@ -20,6 +23,7 @@ impl DownloadStatus {
pub fn as_str(self) -> &'static str {
match self {
Self::Downloading => "downloading",
Self::Processing => "processing",
Self::Paused => "paused",
Self::Completed => "completed",
Self::Failed => "failed",