diff --git a/src/core/download_list.cc b/src/core/download_list.cc index 72c100ae..a1d9f8fb 100644 --- a/src/core/download_list.cc +++ b/src/core/download_list.cc @@ -43,12 +43,11 @@ namespace core { void publish_topic(Download* download, std::string_view topic) { nlohmann::json message = { - {"id", nullptr}, - {"jsonrpc", "2,0"}, + {"jsonrpc", "2.0"}, {"result", { - {"torrent_hash_value", torrent::utils::transform_hex_str(download->info()->hash().str())}, - {"event_name", topic}, - {"time_stamp", std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count()} + {"target", torrent::utils::transform_hex_str(download->info()->hash().str())}, + {"event", topic}, + {"timestamp", std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count()} } } };