feat: support webseeds in transmission-create (#2611)

This commit is contained in:
Charles Kerr
2022-02-12 12:50:47 -06:00
committed by GitHub
parent e14c7f38e5
commit 2410ad2fa6
7 changed files with 121 additions and 11 deletions

View File

@@ -284,7 +284,7 @@ void MakeDialog::Impl::onResponse(int response)
else
{
announce_urls.push_front(str);
trackers.push_back(tr_tracker_info{ tier, announce_urls.front().data(), nullptr, 0 });
trackers.push_back(tr_tracker_info{ tier, announce_urls.front().data() });
}
}
@@ -295,6 +295,8 @@ void MakeDialog::Impl::onResponse(int response)
target.c_str(),
trackers.data(),
trackers.size(),
nullptr,
0,
useComment ? comment.c_str() : nullptr,
isPrivate,
useSource ? source.c_str() : nullptr);