feat(torrents): add encryption policy

This commit is contained in:
NimBold
2026-08-02 10:05:39 +03:30
parent b4da68655a
commit 1d27b5b0bf
19 changed files with 378 additions and 18 deletions
+3
View File
@@ -5806,6 +5806,9 @@ async fn validate_torrent_enqueue(
item.torrent_prioritize_piece = queue::normalize_torrent_prioritize_piece(
item.torrent_prioritize_piece.as_deref(),
)?;
item.torrent_encryption_policy = queue::normalize_torrent_encryption_policy(
item.torrent_encryption_policy.as_deref(),
)?;
validate_enqueue_uris("", item.mirrors.as_deref()).await?;
if let Some(path) = item.torrent_path.as_deref() {
let path = crate::torrent::validate_managed_torrent_path(app_handle, &item.id, path)?;