Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycuban13 authored May 23, 2024
1 parent a005fb0 commit 7f6cf31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Send-ReadarrBooksToKindle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,21 @@ I have only tested this script with sending to a Kindle, but if you have a diffe


```powershell
# Convert JSON to PSObject
$readarrWebhookData = ConvertFrom-Json -InputObject $body
if ($readarrWebhookData.EventType -eq "Test") {
Write-Host "Readarr sent a test"
}
else {
$bookAuthor = $readarrWebhookData.author.name
$bookTitle = $readarrWebhookData.book.title
$bookFilePath = $readarrWebhookData.bookfiles.path
Invoke-PSUScript -Name 'YOUR-SCRIPT-NAME-HERE' -Author $bookAuthor -BookTitle $bookTitle -BookFilePath $bookFilePath -Wait
}
```
> [!IMPORTANT]
Expand Down

0 comments on commit 7f6cf31

Please sign in to comment.