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:
@@ -33,6 +33,12 @@ impl<'a> App<'a> {
|
|||||||
self
|
self
|
||||||
.dispatch_network_event(SonarrEvent::GetEpisodes(None).into())
|
.dispatch_network_event(SonarrEvent::GetEpisodes(None).into())
|
||||||
.await;
|
.await;
|
||||||
|
self
|
||||||
|
.dispatch_network_event(SonarrEvent::GetEpisodeFiles(None).into())
|
||||||
|
.await;
|
||||||
|
self
|
||||||
|
.dispatch_network_event(SonarrEvent::GetDownloads.into())
|
||||||
|
.await;
|
||||||
}
|
}
|
||||||
ActiveSonarrBlock::SeasonHistory => {
|
ActiveSonarrBlock::SeasonHistory => {
|
||||||
self
|
self
|
||||||
|
|||||||
@@ -83,6 +83,14 @@ mod tests {
|
|||||||
sync_network_rx.recv().await.unwrap(),
|
sync_network_rx.recv().await.unwrap(),
|
||||||
SonarrEvent::GetEpisodes(None).into()
|
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!(!app.data.sonarr_data.prompt_confirm);
|
||||||
assert_eq!(app.tick_count, 0);
|
assert_eq!(app.tick_count, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user