From 1aeee3147da3c614623ea61455b0754cead7624d Mon Sep 17 00:00:00 2001 From: Andrii Annenko Date: Tue, 1 Oct 2024 12:50:07 +0200 Subject: [PATCH] Update README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 0a22270..c3803c6 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Here are some examples (replace `` with the hostname or IP address # See all torrents registered in Transmission Manager iwr http://:9092/api/v1/torrents | ConvertFrom-Json -# Register a new torrent in Transmission Manager, send it to Transmission for download and check for the updates every day at 11:00 and 17:00 +# Register a new torrent in Transmission Manager, send it to Transmission for download and check for torrent updates every day at 11:00 and 17:00 iwr http://:9092/api/v1/torrents -Method Post -ContentType application/json -Body '{"webPageUri":"https://nnmclub.to/forum/viewtopic.php?t=1712711","downloadDir":"/tvshows","cron":"0 11,17 * * *"}' # Can't wait for Transmission Manager to refresh your torrent #3 at the scheduled time? Force-refresh it yourself! @@ -114,9 +114,6 @@ iwr http://:9092/api/v1/torrents/3 -Method Post -ContentType applic # Force-refresh all torrents which are still known to Transmission iwr http://:9092/api/v1/torrents | ConvertFrom-Json | % { iwr "http://:9092/api/v1/torrents/$($_.id)" -Method Post -ContentType application/json } -# Re-add all torrents registered in Transmission Manager to Transmission (similar to refresh but also adds torrents back to Transmission if they were removed from there) -iwr http://:9092/api/v1/torrents | ConvertFrom-Json | % { iwr http://:9092/api/v1/torrents -Method Post -ContentType application/json -Body "{""webPageUri"":""$($_.webPageUri)"",""downloadDir"":""$($_.downloadDir)"",""cron"":""$($_.cron)""}" } - # Unregister torrent #5 from Transmission Manager but do not touch it in Transmission iwr http://:9092/api/v1/torrents/5 -Method Delete ```