This commit is contained in:
Scott E. Graves 2025-02-18 16:13:55 -06:00
parent 9c30afe508
commit dec748851d

View File

@ -64,7 +64,10 @@ static void remove_stalled(std::string_view download_id, std::string_view title,
return;
}
if (utils::string::contains("sonarr", server.id)) {
if (not utils::string::contains("sonarr", server.id)) {
return;
}
nlohmann::json data({
{"name", "EpisodeSearch"},
{"episodeIds", {episode_id}},
@ -77,8 +80,6 @@ static void remove_stalled(std::string_view download_id, std::string_view title,
fmt::format("failed to search sonarr|{}|{}|{}|{}|{}", server.id,
server.url, title, episode_id, response->status));
}
return;
}
}
static void check_server(const server_cfg &server, data_db &state_db) {