From 6744dbd21c867cb69e1318a3b7548a5a8ee5272e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 18 Feb 2025 19:25:26 -0600 Subject: [PATCH] refactor --- monitarr/monitarr/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/monitarr/monitarr/main.cpp b/monitarr/monitarr/main.cpp index b26f765..4af9a52 100644 --- a/monitarr/monitarr/main.cpp +++ b/monitarr/monitarr/main.cpp @@ -62,10 +62,10 @@ static void remove_stalled(std::string_view download_id, std::string_view title, response = cli.Post(fmt::format("/api/{}/command", server.api_version), data.dump(), "application/json"); if (response->status != httplib::StatusCode::Created_201) { - utils::error::handle_error( - function_name, - fmt::format("failed to search radarr|{}|{}|{}|{}|{}", server.id, - server.url, title, movie_id, response->status)); + utils::error::handle_error(function_name, + fmt::format("failed to search|{}|{}|{}|{}|{}", + server.id, server.url, title, + movie_id, response->status)); } return; } @@ -82,10 +82,10 @@ static void remove_stalled(std::string_view download_id, std::string_view title, response = cli.Post(fmt::format("/api/{}/command", server.api_version), data.dump(), "application/json"); if (response->status != httplib::StatusCode::Created_201) { - utils::error::handle_error( - function_name, - fmt::format("failed to search sonarr|{}|{}|{}|{}|{}", server.id, - server.url, title, episode_id, response->status)); + utils::error::handle_error(function_name, + fmt::format("failed to search|{}|{}|{}|{}|{}", + server.id, server.url, title, + episode_id, response->status)); } }