Fixed a subtle bug when downloading movies where the movie_id needs to be specified in the POST to the releases endpoint

This commit is contained in:
2023-08-08 10:50:07 -06:00
parent 77fd9e621f
commit e9b6ff0ca1
3 changed files with 16 additions and 2 deletions
+9 -1
View File
@@ -1805,7 +1805,8 @@ mod test {
RequestMethod::Post,
Some(json!({
"guid": "1234",
"indexerId": 2
"indexerId": 2,
"movieId": 1
})),
None,
RadarrEvent::DownloadRelease.resource(),
@@ -1818,6 +1819,13 @@ mod test {
.radarr_data
.movie_releases
.set_items(vec![release()]);
app_arc
.lock()
.await
.data
.radarr_data
.movies
.set_items(vec![movie()]);
let mut network = Network::new(&app_arc, CancellationToken::new());
network