refactor
This commit is contained in:
parent
9c30afe508
commit
dec748851d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user