feat(app): Dispatch support for Season Details to fetch both the current downloads as well as the episode files to match qualities to them

This commit is contained in:
2024-12-10 16:23:30 -07:00
parent 75c4fcbb9e
commit cbad40245f
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -33,6 +33,12 @@ impl<'a> App<'a> {
self
.dispatch_network_event(SonarrEvent::GetEpisodes(None).into())
.await;
self
.dispatch_network_event(SonarrEvent::GetEpisodeFiles(None).into())
.await;
self
.dispatch_network_event(SonarrEvent::GetDownloads.into())
.await;
}
ActiveSonarrBlock::SeasonHistory => {
self
+8
View File
@@ -83,6 +83,14 @@ mod tests {
sync_network_rx.recv().await.unwrap(),
SonarrEvent::GetEpisodes(None).into()
);
assert_eq!(
sync_network_rx.recv().await.unwrap(),
SonarrEvent::GetEpisodeFiles(None).into()
);
assert_eq!(
sync_network_rx.recv().await.unwrap(),
SonarrEvent::GetDownloads.into()
);
assert!(!app.data.sonarr_data.prompt_confirm);
assert_eq!(app.tick_count, 0);
}