Ability to upload torrents + other stuff for Web UI to work

This commit is contained in:
Igor Katson 2023-11-20 19:52:48 +00:00
parent e557d76660
commit 1585a7e04a
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 188 additions and 90 deletions

View file

@ -381,7 +381,10 @@ async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()>
let mut handles = Vec::new();
for path in &download_opts.torrent_path {
let handle = match session.add_torrent(path, Some(torrent_opts.clone())).await {
let handle = match session
.add_torrent(path.as_str(), Some(torrent_opts.clone()))
.await
{
Ok(v) => match v {
AddTorrentResponse::AlreadyManaged(handle) => {
info!(