feat(readarr): fetch the blocklist and expose it on the CLI

This commit is contained in:
Dark-Alex-17 committed 2026-09-01 16:32:13 -06:00
1 parent 5a730f2f05
commit 5c593b3770
7 files changed
+334 -3

No files matched your search

+9
View File
@@ -37,6 +37,8 @@ pub enum ReadarrListCommand {
},
#[command(about = "List all authors in your Readarr library")]
Authors,
#[command(about = "List all items in the Readarr blocklist")]
Blocklist,
#[command(about = "List all editions for the book with the given ID")]
BookEditions {
#[arg(
@@ -175,6 +177,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, ReadarrListCommand> for ReadarrListComman
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrListCommand::Blocklist => {
let resp = self
.network
.handle_network_event(ReadarrEvent::GetBlocklist.into())
.await?;
serde_json::to_string_pretty(&resp)?
}
ReadarrListCommand::BookEditions { book_id } => {
let resp = self
.network