fix(radarr): Provide the movie id alongside the GetMovieCredits event when publishing to the networking channel
This commit is contained in:
+11
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user