Skip to content

Commit

Permalink
Merge pull request #67 from angrycuban13/angrycuban13-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
angrycuban13 committed May 23, 2024
2 parents a005fb0 + 7f6cf31 commit 5a0ca0c
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 5a0ca0c

Please sign in to comment.