refactor
This commit is contained in:
parent
d056534b9b
commit
6744dbd21c
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user