fix(sonarr): Pass series ID alognside all GetEpisodes events when publishing to the networking channel

This commit is contained in:
2024-12-17 23:57:13 -07:00
parent 30ba1f3317
commit 2ecc591966
6 changed files with 36 additions and 85 deletions
+5 -1
View File
@@ -43,7 +43,7 @@ impl<'a> App<'a> {
}
ActiveSonarrBlock::SeasonDetails => {
self
.dispatch_network_event(SonarrEvent::GetEpisodes(None).into())
.dispatch_network_event(SonarrEvent::GetEpisodes(self.extract_series_id().await).into())
.await;
self
.dispatch_network_event(SonarrEvent::GetEpisodeFiles(None).into())
@@ -256,4 +256,8 @@ impl<'a> App<'a> {
.current_selection()
.id
}
async fn extract_series_id(&self) -> i64 {
self.data.sonarr_data.series.current_selection().id
}
}