fix(radarr): Provide the movie id alongside the GetMovieCredits event when publishing to the networking channel

This commit is contained in:
2024-12-17 20:42:52 -07:00
parent 1ad35652f8
commit e1d5139e36
7 changed files with 46 additions and 82 deletions
+11 -1
View File
@@ -123,7 +123,7 @@ impl<'a> App<'a> {
|| movie_details_modal.movie_crew.items.is_empty() =>
{
self
.dispatch_network_event(RadarrEvent::GetMovieCredits(None).into())
.dispatch_network_event(RadarrEvent::GetMovieCredits(self.extract_movie_id().await).into())
.await;
}
_ => (),
@@ -219,4 +219,14 @@ impl<'a> App<'a> {
.collection_movies
.set_items(collection_movies);
}
async fn extract_movie_id(&self) -> i64 {
self
.data
.radarr_data
.movies
.current_selection()
.clone()
.id
}
}