pub async fn enqueue_video_downloads(
db: State<'_, DatabaseWrapper>,
download_manager: State<'_, DownloadManagerWrapper>,
repository: State<'_, RepositoryManagerWrapper>,
app: AppHandle,
handle: String,
download_ids: Vec<i64>,
target_dir: String,
) -> Result<(), String>Expand description
Enqueue a batch of already-queued video downloads, resolving each one’s
transcode URL from the repository using the quality_preset stored on the
row. Then let the pump start them subject to the concurrency limit.
This is the bulk video path (series/season): download_series/
download_season insert the rows, then this resolves URLs and enqueues them
so they actually start. Resolving server-side avoids round-tripping every
episode URL through the frontend.