Ability to upload torrents + other stuff for Web UI to work
This commit is contained in:
parent
e557d76660
commit
1585a7e04a
5 changed files with 188 additions and 90 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue