feat: Fixed the Radarr downloads tab to display more than 10 downloads at a time and added a new --count flag to the CLI for specifying the number of downloads to return

This commit is contained in:
2025-07-13 15:04:39 -06:00
parent cb4cd93bcd
commit ef5e702255
8 changed files with 85 additions and 28 deletions
+4 -4
View File
@@ -198,7 +198,7 @@ mod test {
#[rstest]
fn test_resource_queue(
#[values(RadarrEvent::GetDownloads, RadarrEvent::DeleteDownload(0))] event: RadarrEvent,
#[values(RadarrEvent::GetDownloads(0), RadarrEvent::DeleteDownload(0))] event: RadarrEvent,
) {
assert_str_eq!(event.resource(), "/queue");
}
@@ -1859,15 +1859,15 @@ mod test {
None,
Some(downloads_response_json),
None,
RadarrEvent::GetDownloads,
None,
RadarrEvent::GetDownloads(500),
None,
Some("pageSize=500"),
)
.await;
let mut network = Network::new(&app_arc, CancellationToken::new(), Client::new());
if let RadarrSerdeable::DownloadsResponse(downloads) = network
.handle_radarr_event(RadarrEvent::GetDownloads)
.handle_radarr_event(RadarrEvent::GetDownloads(500))
.await
.unwrap()
{