fix(sonarr): Pass series ID alognside all GetEpisodes events when publishing to the networking channel
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user