Added system.files.advise_random.set command.

This commit is contained in:
Jari Sundell
2025-03-28 11:21:25 +01:00
committed by GitHub
parent 9a2ce2b231
commit 3a227c190f
14 changed files with 348 additions and 105 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ initialize_rpc() {
if (index >= d->file_list()->size_files())
throw torrent::input_error("invalid parameters: index not found");
return (*d->file_list())[index];
return (*d->file_list())[index].get();
};
rpc::rpc.slot_find_tracker() = [](core::Download* d, uint32_t index) -> torrent::tracker::Tracker {
if (index >= d->tracker_list()->size())