mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-25 01:57:06 +00:00
feat(torrents): add encryption policy
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user