fix(radarr): Pass in the indexer id with all TestIndexer events when publishing to the networking channel

This commit is contained in:
2024-12-17 21:21:23 -07:00
parent 965c488468
commit 8d071c7674
7 changed files with 747 additions and 781 deletions
+11 -1
View File
@@ -77,7 +77,7 @@ impl<'a> App<'a> {
}
ActiveRadarrBlock::TestIndexer => {
self
.dispatch_network_event(RadarrEvent::TestIndexer(None).into())
.dispatch_network_event(RadarrEvent::TestIndexer(self.extract_indexer_id().await).into())
.await;
}
ActiveRadarrBlock::TestAllIndexers => {
@@ -233,4 +233,14 @@ impl<'a> App<'a> {
async fn extract_movie_search_query(&self) -> String {
self.data.radarr_data.add_movie_search.as_ref().expect("Add movie search is empty").text.clone()
}
async fn extract_indexer_id(&self) -> i64 {
self
.data
.radarr_data
.indexers
.current_selection()
.clone()
.id
}
}